1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +00:00

Fix a crash when importing some old topologies.

Fix #699
This commit is contained in:
Julien Duponchelle 2016-09-30 10:36:18 +02:00
parent a01b55f07b
commit a8c32e6b8e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -259,7 +259,7 @@ def _convert_1_3_later(topo, topo_path):
nodes = []
source_node = {
"adapter_number": ports[old_link["source_port_id"]].get("adapter_number", 0),
"port_number": ports[old_link["source_port_id"]]["port_number"],
"port_number": ports[old_link["source_port_id"]].get("port_number", 0),
"node_id": node_id_to_node_uuid[old_link["source_node_id"]]
}
nodes.append(source_node)