mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-04 03:54:11 +00:00
parent
e236f63162
commit
bb080fa96a
@ -260,7 +260,7 @@ class VMwareVM(BaseVM):
|
|||||||
vnet = "ethernet{}.vnet".format(adapter_number)
|
vnet = "ethernet{}.vnet".format(adapter_number)
|
||||||
if vnet in self._vmx_pairs:
|
if vnet in self._vmx_pairs:
|
||||||
vmnet = os.path.basename(self._vmx_pairs[vnet])
|
vmnet = os.path.basename(self._vmx_pairs[vnet])
|
||||||
if vmnet in self.manager.is_managed_vmnet(vmnet):
|
if self.manager.is_managed_vmnet(vmnet):
|
||||||
# vmnet already managed, try to allocate a new one
|
# vmnet already managed, try to allocate a new one
|
||||||
allocate_vmnet = True
|
allocate_vmnet = True
|
||||||
else:
|
else:
|
||||||
@ -276,7 +276,7 @@ class VMwareVM(BaseVM):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
# mark the vmnet managed by us
|
# mark the vmnet managed by us
|
||||||
if not vmnet in self._vmnets:
|
if vmnet not in self._vmnets:
|
||||||
self._vmnets.append(vmnet)
|
self._vmnets.append(vmnet)
|
||||||
self._vmx_pairs["ethernet{}.vnet".format(adapter_number)] = vmnet
|
self._vmx_pairs["ethernet{}.vnet".format(adapter_number)] = vmnet
|
||||||
else:
|
else:
|
||||||
@ -810,7 +810,6 @@ class VMwareVM(BaseVM):
|
|||||||
nio=nio,
|
nio=nio,
|
||||||
adapter_number=adapter_number))
|
adapter_number=adapter_number))
|
||||||
|
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def adapter_remove_nio_binding(self, adapter_number):
|
def adapter_remove_nio_binding(self, adapter_number):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user