mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-13 01:20:58 +00:00
parent
e53db1ed81
commit
ef54367bf7
@ -310,6 +310,7 @@ def _convert_1_3_later(topo, topo_path):
|
|||||||
|
|
||||||
# Create links
|
# Create links
|
||||||
for old_link in topo.get("links", []):
|
for old_link in topo.get("links", []):
|
||||||
|
try:
|
||||||
nodes = []
|
nodes = []
|
||||||
source_node = {
|
source_node = {
|
||||||
"adapter_number": ports[old_link["source_port_id"]].get("adapter_number", 0),
|
"adapter_number": ports[old_link["source_port_id"]].get("adapter_number", 0),
|
||||||
@ -324,6 +325,8 @@ def _convert_1_3_later(topo, topo_path):
|
|||||||
"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)
|
||||||
|
except KeyError:
|
||||||
|
continue
|
||||||
|
|
||||||
link = {
|
link = {
|
||||||
"link_id": str(uuid.uuid4()),
|
"link_id": str(uuid.uuid4()),
|
||||||
|
Loading…
Reference in New Issue
Block a user