|
|
@ -318,8 +318,6 @@ class Router(BaseVM):
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
log.debug('Router "{name}" [{id}] is closing'.format(name=self._name, id=self._id))
|
|
|
|
log.debug('Router "{name}" [{id}] is closing'.format(name=self._name, id=self._id))
|
|
|
|
if self._dynamips_id in self._dynamips_ids[self._project.id]:
|
|
|
|
|
|
|
|
self._dynamips_ids[self._project.id].remove(self._dynamips_id)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self._console:
|
|
|
|
if self._console:
|
|
|
|
self._manager.port_manager.release_tcp_port(self._console, self._project)
|
|
|
|
self._manager.port_manager.release_tcp_port(self._console, self._project)
|
|
|
@ -1608,6 +1606,9 @@ class Router(BaseVM):
|
|
|
|
log.warn("Could not delete file {}: {}".format(file, e))
|
|
|
|
log.warn("Could not delete file {}: {}".format(file, e))
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self._dynamips_id in self._dynamips_ids[self._project.id]:
|
|
|
|
|
|
|
|
self._dynamips_ids[self._project.id].remove(self._dynamips_id)
|
|
|
|
|
|
|
|
|
|
|
|
@asyncio.coroutine
|
|
|
|
@asyncio.coroutine
|
|
|
|
def clean_delete(self):
|
|
|
|
def clean_delete(self):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|