Skip to content

Commit

Permalink
Fix for nat node
Browse files Browse the repository at this point in the history
Ref #686
  • Loading branch information
julien-duponchelle committed Sep 22, 2016
1 parent 5631e1b commit 6837cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gns3server/compute/builtin/nodes/nat.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, *args, **kwargs):
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",
Expand All @@ -53,5 +53,5 @@ def __json__(self):
"node_id": self.id,
"project_id": self.project.id,
"status": "started",
"ports_mapping": self.ports
"ports_mapping": self.ports_mapping
}

0 comments on commit 6837cc8

Please sign in to comment.