From acd1d95a8e7a8c58f6881a55bae736201dc20682 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 24 Oct 2016 17:57:23 +0200 Subject: [PATCH] Fix import of some old dynamips topologies Fix #734 --- gns3server/controller/topology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/controller/topology.py b/gns3server/controller/topology.py index 84ed3753..5ea8650c 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -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"):