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

Merge branch '1.5' into 2.0

This commit is contained in:
Julien Duponchelle 2016-04-26 11:48:43 +02:00
commit 8777e027b0
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())