1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix broken connectivity between containers

Fix #502
This commit is contained in:
Julien Duponchelle 2016-04-25 16:09:04 +02:00
parent 637a7326ec
commit 7ffdd0fab1
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -652,6 +652,9 @@ class DockerVM(BaseVM):
:param adapters: number of adapters :param adapters: number of adapters
""" """
if len(self._ethernet_adapters) == adapters:
return
self._ethernet_adapters.clear() self._ethernet_adapters.clear()
for adapter_number in range(0, adapters): for adapter_number in range(0, adapters):
self._ethernet_adapters.append(EthernetAdapter()) self._ethernet_adapters.append(EthernetAdapter())