1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Fix error when importing some old topologies

Fix #680
This commit is contained in:
Julien Duponchelle 2016-09-18 22:20:29 +02:00
parent b7bd73e8c9
commit ac8bd3fec4
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -266,7 +266,7 @@ def _convert_1_3_later(topo, topo_path):
destination_node = { destination_node = {
"adapter_number": ports[old_link["destination_port_id"]].get("adapter_number", 0), "adapter_number": ports[old_link["destination_port_id"]].get("adapter_number", 0),
"port_number": ports[old_link["destination_port_id"]]["port_number"], "port_number": ports[old_link["destination_port_id"]].get("port_number", 0),
"node_id": node_id_to_node_uuid[old_link["destination_node_id"]] "node_id": node_id_to_node_uuid[old_link["destination_node_id"]]
} }
nodes.append(destination_node) nodes.append(destination_node)