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

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

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):