mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
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:
3 files changed
+29
-1
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user