1
0
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:
Julien Duponchelle 2016-09-23 10:56:37 +02:00
parent 4c900ce639
commit dc798dafd0
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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