When importing portable project NAT node is loaded on GNS3 VM

Fix #1030
This commit is contained in:
Julien Duponchelle
2017-05-15 10:20:57 +02:00
parent facdf9c617
commit 851d6e1db8
2 changed files with 45 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def import_project(controller, project_id, stream, location=None, name=None, kee
# unless it's a linux host without GNS3 VM
if not sys.platform.startswith("linux") or controller.has_compute("vm"):
for node in topology["topology"]["nodes"]:
if node["node_type"] in ("docker", "qemu", "iou"):
if node["node_type"] in ("docker", "qemu", "iou", "nat"):
node["compute_id"] = "vm"
else:
for node in topology["topology"]["nodes"]: