Correct link are not connected to the correct ethernet switch port after conversion

Fix https://github.com/GNS3/gns3-gui/issues/1797
This commit is contained in:
Julien Duponchelle committed 2017-01-23 13:34:11 +01:00
1 parent f90e6f2f5b
commit dc40b0296e
3 files changed
+29 -1

No files matched your search

+2
View File
@@ -341,6 +341,8 @@ def _convert_1_3_later(topo, topo_path):
node_id_to_node_uuid[old_node["id"]] = node["node_id"]
for port in old_node.get("ports", []):
if node["node_type"] in ("ethernet_hub", "ethernet_switch"):
port["port_number"] -= 1
ports[port["id"]] = port
new_topo["topology"]["nodes"].append(node)