Commit ac061be9 authored by Guido Trotter's avatar Guido Trotter
Browse files

nic parameters: constants



Introducing the constants used for implementing nic parameters in
Ganeti, according to the 2.1 design.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 6e34b628
......@@ -346,6 +346,21 @@ BES_PARAMETERS = frozenset(BES_PARAMETER_TYPES.keys())
# 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_FAKE = "fake"
......@@ -535,4 +550,9 @@ BEC_DEFAULTS = {
BE_AUTO_BALANCE: True,
}
NICC_DEFAULTS = {
NIC_MODE: NIC_MODE_BRIDGED,
NIC_LINK: DEFAULT_BRIDGE,
}
MASTER_POOL_SIZE_DEFAULT = 10
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment