BES_PARAMETERS = frozenset(BES_PARAMETER_TYPES.keys())
-# BE GROUP
-BEGR_DEFAULT = "default"
+# Instance Parameters Profile
+PP_DEFAULT = "default"
+
+NIC_MODE = "mode"
+NIC_LINK = "link"
+
+NIC_MODE_BRIDGED = "bridged"
+NIC_MODE_ROUTED = "routed"
+
+NIC_VALID_MODES = frozenset([NIC_MODE_BRIDGED, NIC_MODE_ROUTED])
+
+NICS_PARAMETER_TYPES = {
+ NIC_MODE: VTYPE_STRING,
+ NIC_LINK: VTYPE_STRING,
+ }
+
+NICS_PARAMETERS = frozenset(NICS_PARAMETER_TYPES.keys())
# Hypervisor constants
HT_XEN_PVM = "xen-pvm"
HT_KVM = "kvm"
HYPER_TYPES = frozenset([HT_XEN_PVM, HT_FAKE, HT_XEN_HVM, HT_KVM])
HTS_REQ_PORT = frozenset([HT_XEN_HVM, HT_KVM])
-HTS_COPY_VNC_PASSWORD = frozenset([HT_XEN_HVM])
VNC_BASE_PORT = 5900
VNC_PASSWORD_FILE = _autoconf.SYSCONFDIR + "/ganeti/vnc-cluster-password"
BE_AUTO_BALANCE: True,
}
+NICC_DEFAULTS = {
+ NIC_MODE: NIC_MODE_BRIDGED,
+ NIC_LINK: DEFAULT_BRIDGE,
+ }
+
MASTER_POOL_SIZE_DEFAULT = 10