Revision 649f774a lib/constants.py
b/lib/constants.py | ||
---|---|---|
805 | 805 |
OOB_STATUS_UNKNOWN = _constants.OOB_STATUS_UNKNOWN |
806 | 806 |
OOB_STATUSES = _constants.OOB_STATUSES |
807 | 807 |
|
808 |
# Instance Parameters Profile |
|
809 |
PP_DEFAULT = "default" |
|
808 |
PP_DEFAULT = _constants.PP_DEFAULT |
|
810 | 809 |
|
811 | 810 |
NIC_MODE = _constants.NIC_MODE |
812 | 811 |
NIC_LINK = _constants.NIC_LINK |
... | ... | |
820 | 819 |
NIC_IP_POOL = _constants.NIC_IP_POOL |
821 | 820 |
NIC_VALID_MODES = _constants.NIC_VALID_MODES |
822 | 821 |
|
823 |
RESERVE_ACTION = "reserve" |
|
824 |
RELEASE_ACTION = "release" |
|
825 |
|
|
826 |
# IDISK_* constants are used in opcodes, to create/change disks |
|
827 |
IDISK_SIZE = "size" |
|
828 |
IDISK_SPINDLES = "spindles" |
|
829 |
IDISK_MODE = "mode" |
|
830 |
IDISK_ADOPT = "adopt" |
|
831 |
IDISK_VG = "vg" |
|
832 |
IDISK_METAVG = "metavg" |
|
833 |
IDISK_PROVIDER = "provider" |
|
834 |
IDISK_NAME = "name" |
|
835 |
IDISK_PARAMS_TYPES = { |
|
836 |
IDISK_SIZE: VTYPE_SIZE, |
|
837 |
IDISK_SPINDLES: VTYPE_INT, |
|
838 |
IDISK_MODE: VTYPE_STRING, |
|
839 |
IDISK_ADOPT: VTYPE_STRING, |
|
840 |
IDISK_VG: VTYPE_STRING, |
|
841 |
IDISK_METAVG: VTYPE_STRING, |
|
842 |
IDISK_PROVIDER: VTYPE_STRING, |
|
843 |
IDISK_NAME: VTYPE_MAYBE_STRING, |
|
844 |
} |
|
845 |
IDISK_PARAMS = frozenset(IDISK_PARAMS_TYPES.keys()) |
|
846 |
|
|
847 |
# INIC_* constants are used in opcodes, to create/change nics |
|
848 |
INIC_MAC = "mac" |
|
849 |
INIC_IP = "ip" |
|
850 |
INIC_MODE = "mode" |
|
851 |
INIC_LINK = "link" |
|
852 |
INIC_NETWORK = "network" |
|
853 |
INIC_NAME = "name" |
|
854 |
INIC_VLAN = "vlan" |
|
855 |
INIC_BRIDGE = "bridge" |
|
856 |
INIC_PARAMS_TYPES = { |
|
857 |
INIC_IP: VTYPE_MAYBE_STRING, |
|
858 |
INIC_LINK: VTYPE_STRING, |
|
859 |
INIC_MAC: VTYPE_STRING, |
|
860 |
INIC_MODE: VTYPE_STRING, |
|
861 |
INIC_NETWORK: VTYPE_MAYBE_STRING, |
|
862 |
INIC_NAME: VTYPE_MAYBE_STRING, |
|
863 |
INIC_VLAN: VTYPE_MAYBE_STRING, |
|
864 |
INIC_BRIDGE: VTYPE_MAYBE_STRING |
|
865 |
} |
|
866 |
INIC_PARAMS = frozenset(INIC_PARAMS_TYPES.keys()) |
|
822 |
RESERVE_ACTION = _constants.RESERVE_ACTION |
|
823 |
RELEASE_ACTION = _constants.RELEASE_ACTION |
|
824 |
|
|
825 |
IDISK_SIZE = _constants.IDISK_SIZE |
|
826 |
IDISK_SPINDLES = _constants.IDISK_SPINDLES |
|
827 |
IDISK_MODE = _constants.IDISK_MODE |
|
828 |
IDISK_ADOPT = _constants.IDISK_ADOPT |
|
829 |
IDISK_VG = _constants.IDISK_VG |
|
830 |
IDISK_METAVG = _constants.IDISK_METAVG |
|
831 |
IDISK_PROVIDER = _constants.IDISK_PROVIDER |
|
832 |
IDISK_NAME = _constants.IDISK_NAME |
|
833 |
IDISK_PARAMS_TYPES = _constants.IDISK_PARAMS_TYPES |
|
834 |
IDISK_PARAMS = _constants.IDISK_PARAMS |
|
835 |
|
|
836 |
INIC_MAC = _constants.INIC_MAC |
|
837 |
INIC_IP = _constants.INIC_IP |
|
838 |
INIC_MODE = _constants.INIC_MODE |
|
839 |
INIC_LINK = _constants.INIC_LINK |
|
840 |
INIC_NETWORK = _constants.INIC_NETWORK |
|
841 |
INIC_NAME = _constants.INIC_NAME |
|
842 |
INIC_VLAN = _constants.INIC_VLAN |
|
843 |
INIC_BRIDGE = _constants.INIC_BRIDGE |
|
844 |
INIC_PARAMS_TYPES = _constants.INIC_PARAMS_TYPES |
|
845 |
INIC_PARAMS = _constants.INIC_PARAMS |
|
867 | 846 |
|
868 | 847 |
# Hypervisor constants |
869 | 848 |
HT_XEN_PVM = _constants.HT_XEN_PVM |
Also available in: Unified diff