mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
parent
31ed2a4c96
commit
490576fedc
@ -253,7 +253,10 @@ def _convert_1_3_later(topo, topo_path):
|
|||||||
for old_node in topo.get("nodes", []):
|
for old_node in topo.get("nodes", []):
|
||||||
node = {}
|
node = {}
|
||||||
node["console"] = old_node["properties"].get("console", None)
|
node["console"] = old_node["properties"].get("console", None)
|
||||||
node["compute_id"] = server_id_to_compute_id[old_node["server_id"]]
|
try:
|
||||||
|
node["compute_id"] = server_id_to_compute_id[old_node["server_id"]]
|
||||||
|
except KeyError:
|
||||||
|
node["compute_id"] = "local"
|
||||||
node["console_type"] = old_node["properties"].get("console_type", "telnet")
|
node["console_type"] = old_node["properties"].get("console_type", "telnet")
|
||||||
node["name"] = old_node["label"]["text"]
|
node["name"] = old_node["label"]["text"]
|
||||||
node["label"] = _convert_label(old_node["label"])
|
node["label"] = _convert_label(old_node["label"])
|
||||||
|
Loading…
Reference in New Issue
Block a user