From 246f406781a9c197c241786a600c91601a05addf Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Wed, 16 Feb 2011 12:02:28 +0000 Subject: [PATCH] Add comments about INIC, IDISK and NIC constants Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/constants.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/constants.py b/lib/constants.py index e2143364d..2bd73ddf7 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -712,6 +712,7 @@ OOB_STATUSES = frozenset([ # Instance Parameters Profile PP_DEFAULT = "default" +# NIC_* constants are used inside the ganeti config NIC_MODE = "mode" NIC_LINK = "link" @@ -727,6 +728,7 @@ NICS_PARAMETER_TYPES = { NICS_PARAMETERS = frozenset(NICS_PARAMETER_TYPES.keys()) +# IDISK_* constants are used in opcodes, to create/change disks IDISK_SIZE = "size" IDISK_MODE = "mode" IDISK_ADOPT = "adopt" @@ -739,6 +741,7 @@ IDISK_PARAMS_TYPES = { } IDISK_PARAMS = frozenset(IDISK_PARAMS_TYPES.keys()) +# INIC_* constants are used in opcodes, to create/change nics INIC_MAC = "mac" INIC_IP = "ip" INIC_MODE = "mode" -- GitLab