Fix Can't delete link between docker VM after they were in use

Fix #818
This commit is contained in:
Julien Duponchelle committed 2016-12-14 12:01:34 +01:00
1 parent 30f29d00c4
commit d0f65aebff
7 files changed
+30 -25

No files matched your search

+3
View File
@@ -478,6 +478,8 @@ class BaseNode:
:returns: path to uBridge
"""
if self._ubridge_hypervisor and not self._ubridge_hypervisor.is_running():
self._ubridge_hypervisor = None
return self._ubridge_hypervisor
@ubridge.setter
@@ -547,6 +549,7 @@ class BaseNode:
if self._ubridge_hypervisor and self._ubridge_hypervisor.is_running():
log.info("Stopping uBridge hypervisor {}:{}".format(self._ubridge_hypervisor.host, self._ubridge_hypervisor.port))
yield from self._ubridge_hypervisor.stop()
self._ubridge_hypervisor = None
@asyncio.coroutine
def _add_ubridge_udp_connection(self, bridge_name, source_nio, destination_nio):