Commit 4c98734a authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Fix missing constant from Python constants



Add INIC_BRIDGE constant which is present in Haskell opcodes but not
in Python opcodes.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent fd96442a
......@@ -1381,6 +1381,7 @@ INIC_LINK = "link"
INIC_NETWORK = "network"
INIC_NAME = "name"
INIC_VLAN = "vlan"
INIC_BRIDGE = "bridge"
INIC_PARAMS_TYPES = {
INIC_IP: VTYPE_MAYBE_STRING,
INIC_LINK: VTYPE_STRING,
......@@ -1389,6 +1390,7 @@ INIC_PARAMS_TYPES = {
INIC_NETWORK: VTYPE_MAYBE_STRING,
INIC_NAME: VTYPE_MAYBE_STRING,
INIC_VLAN: VTYPE_MAYBE_STRING,
INIC_BRIDGE: VTYPE_MAYBE_STRING
}
INIC_PARAMS = frozenset(INIC_PARAMS_TYPES.keys())
......
......@@ -2085,7 +2085,7 @@ class OpTestAllocator(OpCode):
("nics", ht.NoDefault,
ht.TMaybeListOf(ht.TDictOf(ht.TElemOf([constants.INIC_MAC,
constants.INIC_IP,
"bridge"]),
constants.INIC_BRIDGE]),
ht.TMaybeString)),
None),
("disks", ht.NoDefault, ht.TMaybe(ht.TList), None),
......
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