Use ubridge for dynamips routers

Ref #1109
This commit is contained in:
Julien Duponchelle
2017-07-10 20:38:28 +02:00
parent c6f28afb7c
commit 557924e91a
11 changed files with 62 additions and 24 deletions

View File

@ -122,8 +122,8 @@ class ATMSwitch(Device):
@asyncio.coroutine
def close(self):
for nio in self._nios.values():
if nio and isinstance(nio, NIOUDP):
self.manager.port_manager.release_udp_port(nio.lport, self._project)
if nio:
yield from nio.close()
if self._hypervisor:
try: