Fix bug with 'none' console type for Ethernet switch.

Fix some tests related to traceng.
This commit is contained in:
grossmj
2018-03-30 13:00:52 +07:00
parent c684e63be2
commit ab7930d3d9
3 changed files with 94098 additions and 93910 deletions

View File

@@ -46,8 +46,10 @@ class EthernetSwitch(Node):
:param result: server response (dict)
"""
self.settings()["ports_mapping"] = result["ports_mapping"]
self.settings()["console"] = result["console"]
self.settings()["console_type"] = result["console_type"]
def console(self):
return self.settings()["console"]
@@ -72,7 +74,9 @@ class EthernetSwitch(Node):
:param result: server response
"""
self.settings()["ports_mapping"] = result["ports_mapping"]
self.settings()["console_type"] = result["console_type"]
def info(self):
"""

File diff suppressed because it is too large Load Diff

View File

@@ -125,6 +125,7 @@ def test_add_appliance_iou(empty_config, iou_l3):
"serial_adapters": 2,
"ethernet_adapters": 2,
"use_default_iou_values": True,
"console_type": "telnet",
"startup_config": "iou_l3_base_startup-config.txt",
"image": os.path.basename(iou_l3),
"path": os.path.basename(iou_l3)