mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-18 06:18:08 +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"]
|
"name": interface["name"]
|
||||||
})
|
})
|
||||||
else:
|
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):
|
def _interfaces(self):
|
||||||
return gns3server.utils.interfaces.interfaces()
|
return gns3server.utils.interfaces.interfaces()
|
||||||
|
Loading…
Reference in New Issue
Block a user