1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Fix import of some old dynamips topologies

Fix #734
This commit is contained in:
Julien Duponchelle 2016-10-24 17:57:23 +02:00
parent 0caf74443b
commit acd1d95a8e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -248,7 +248,7 @@ def _convert_1_3_later(topo, topo_path):
if node["symbol"] is None:
node["symbol"] = ":/symbols/router.svg"
node["node_type"] = "dynamips"
node["properties"]["dynamips_id"] = old_node["dynamips_id"]
node["properties"]["dynamips_id"] = old_node.get("dynamips_id")
if "platform" not in node["properties"] and old_node["type"].startswith("C"):
node["properties"]["platform"] = old_node["type"].lower()
if "ram" not in node["properties"] and old_node["type"].startswith("C"):