mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
Fix bug with 'none' console type for Ethernet switch.
Fix some tests related to traceng.
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
188003
gns3/ui/resources_rc.py
188003
gns3/ui/resources_rc.py
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user