When importing portable project NAT node is loaded on GNS3 VM

Fix #1030
This commit is contained in:
Julien Duponchelle committed 2017-05-15 10:21:37 +02:00
1 parent facdf9c617
commit 851d6e1db8
2 files changed
+45 -1

No files matched your search

+1 -1
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"]: