From 51d6152a5c18438d13bccb4bc692594d1f448ca3 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 19 May 2017 18:27:20 +0200 Subject: [PATCH] Fix support for some old topologies Fix #1042 --- gns3server/controller/topology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/topology.py b/gns3server/controller/topology.py index 01d915ee..13ac5c01 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -331,12 +331,12 @@ def _convert_1_3_later(topo, topo_path): node["node_type"] = "frame_relay_switch" node["symbol"] = ":/symbols/frame_relay_switch.svg" node["console_type"] = None - elif old_node["type"] in ["C1700", "C2600", "C2691", "C3600", "C3620", "C3640", "C3660", "C3725", "C3745", "C7200", "EtherSwitchRouter"]: + elif old_node["type"].upper() in ["C1700", "C2600", "C2691", "C3600", "C3620", "C3640", "C3660", "C3725", "C3745", "C7200", "EtherSwitchRouter"]: if node["symbol"] is None: node["symbol"] = ":/symbols/router.svg" node["node_type"] = "dynamips" node["properties"]["dynamips_id"] = old_node.get("dynamips_id") - if "platform" not in node["properties"] and old_node["type"].startswith("C"): + if "platform" not in node["properties"] and old_node["type"].upper().startswith("C"): node["properties"]["platform"] = old_node["type"].lower() if node["properties"]["platform"].startswith("c36"): node["properties"]["platform"] = "c3600"