mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-17 22:08:35 +00:00
Fix a crash in NAT
This commit is contained in:
parent
3ea5df7462
commit
7df645f742
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user