mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Cloud support multiple interfaces
This commit is contained in:
parent
4c900ce639
commit
dc798dafd0
@ -500,10 +500,10 @@ class Node:
|
||||
self._ports = DynamipsPortFactory(self.properties)
|
||||
return
|
||||
elif self._node_type in ("cloud", "nat"):
|
||||
adapter_number = 0
|
||||
port_number = 0
|
||||
for port in self.properties["ports_mapping"]:
|
||||
self._ports.append(PortFactory(port["name"], adapter_number, adapter_number, 0, "ethernet"))
|
||||
adapter_number += 1
|
||||
self._ports.append(PortFactory(port["name"], 0, 0, port_number, "ethernet"))
|
||||
port_number += 1
|
||||
else:
|
||||
self._ports = StandardPortFactory(self.properties, self._port_by_adapter, self._first_port_name, self._port_name_format, self._port_segment_size)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user