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
"""
if len(self._ethernet_adapters) == adapters:
return
self._ethernet_adapters.clear()
for adapter_number in range(0, adapters):
self._ethernet_adapters.append(EthernetAdapter())