From 930e7089db4ec03c0c5b7d7cedbb6484e8595cc4 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 4 May 2017 12:09:56 +0200 Subject: [PATCH] Fix a conversion issue with some 1.3 topologies --- 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 ee16c0d2..e73eec2d 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -306,7 +306,7 @@ def _convert_1_3_later(topo, topo_path): node["console_type"] = None node["symbol"] = ":/symbols/hub.svg" node["properties"]["ports_mapping"] = [] - for port in old_node["ports"]: + for port in old_node.get("ports", []): node["properties"]["ports_mapping"].append({ "name": "Ethernet{}".format(port["port_number"] - 1), "port_number": port["port_number"] - 1