Use "template" to name what we use to create new nodes.

This commit is contained in:
grossmj
2018-11-28 16:12:57 +07:00
parent 21c0a35f77
commit d7c2e16c21
262 changed files with 16588 additions and 16863 deletions

View File

@ -159,6 +159,14 @@ def load_topology(path):
if topo["revision"] < 9:
topo = _convert_2_1_0(topo, path)
# Version GNS3 2.2 dev (for project created with 2.2dev).
# Appliance ID has been repleace by Template ID
if topo["revision"] == 9:
for node in topo.get("topology", {}).get("nodes", []):
if "appliance_id" in node:
node["template_id"] = node["appliance_id"]
del node["appliance_id"]
try:
_check_topology_schema(topo)
except aiohttp.web.HTTPConflict as e: