From 6837cc8e23c3e43c15a7fa84ed576a35f25b5196 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 22 Sep 2016 15:58:31 +0200 Subject: [PATCH] Fix for nat node Ref #686 --- gns3server/compute/builtin/nodes/nat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/builtin/nodes/nat.py b/gns3server/compute/builtin/nodes/nat.py index 84e14597..324e977c 100644 --- a/gns3server/compute/builtin/nodes/nat.py +++ b/gns3server/compute/builtin/nodes/nat.py @@ -34,7 +34,7 @@ class Nat(Cloud): if "virbr0" not in [interface["name"] for interface in gns3server.utils.interfaces.interfaces()]: raise NodeError("virbr0 is missing. You need to install libvirt") - self.ports = [ + self.ports_mapping = [ { "name": "virbr0", "type": "ethernet", @@ -53,5 +53,5 @@ class Nat(Cloud): "node_id": self.id, "project_id": self.project.id, "status": "started", - "ports_mapping": self.ports + "ports_mapping": self.ports_mapping }