Support "L1 keepalives" in IOU appliance schema.

This commit is contained in:
grossmj 2018-11-18 16:04:08 +07:00
parent c7b8c347d7
commit a33b8eac3a
2 changed files with 7 additions and 1 deletions

View File

@ -60,6 +60,11 @@ IOU_APPLIANCE_PROPERTIES = {
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"l1_keepalives": {
"description": "Always keep up Ethernet interface (does not always work)",
"type": "boolean",
"default": False
},
"console_type": { "console_type": {
"description": "Console type", "description": "Console type",
"enum": ["telnet", "none"], "enum": ["telnet", "none"],

View File

@ -603,7 +603,8 @@ def test_iou_appliance_create(http_controller):
"serial_adapters": 2, "serial_adapters": 2,
"startup_config": "iou_l3_base_startup-config.txt", "startup_config": "iou_l3_base_startup-config.txt",
"symbol": ":/symbols/multilayer_switch.svg", "symbol": ":/symbols/multilayer_switch.svg",
"use_default_iou_values": True} "use_default_iou_values": True,
"l1_keepalives": False}
for item, value in expected_response.items(): for item, value in expected_response.items():
assert response.json.get(item) == value assert response.json.get(item) == value