mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
Minor code cleanup
This commit is contained in:
parent
2a20333877
commit
5345fe8490
@ -555,10 +555,10 @@ class DockerVM(BaseVM):
|
|||||||
if not self._ubridge_hypervisor or not self._ubridge_hypervisor.is_running():
|
if not self._ubridge_hypervisor or not self._ubridge_hypervisor.is_running():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
adapter = self._ethernet_adapters[adapter_number]
|
||||||
|
|
||||||
yield from self._ubridge_hypervisor.send("bridge delete bridge{name}".format(
|
yield from self._ubridge_hypervisor.send("bridge delete bridge{name}".format(
|
||||||
name=adapter_number))
|
name=adapter_number))
|
||||||
|
|
||||||
adapter = self._ethernet_adapters[adapter_number]
|
|
||||||
yield from self._ubridge_hypervisor.send('docker delete_veth {hostif}'.format(hostif=adapter.host_ifc))
|
yield from self._ubridge_hypervisor.send('docker delete_veth {hostif}'.format(hostif=adapter.host_ifc))
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
Reference in New Issue
Block a user