Fix import of some old dynamips topologies

Fix #734
pull/774/head
Julien Duponchelle 8 years ago
parent 0caf74443b
commit acd1d95a8e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -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"):

Loading…
Cancel
Save