mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
parent
637a7326ec
commit
7ffdd0fab1
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user