1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Fix a crash in NAT

This commit is contained in:
Julien Duponchelle 2016-09-27 11:54:07 +02:00
parent 3ea5df7462
commit 7df645f742
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -58,7 +58,11 @@ class Cloud(BaseNode):
"name": interface["name"]
})
else:
self.ports_mapping = ports
port_number = 0
for port in ports:
port["port_number"] = port_number
port_number += 1
self._ports_mapping = ports
def _interfaces(self):
return gns3server.utils.interfaces.interfaces()