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

@ -120,8 +120,8 @@ class EthernetHub(Bridge):
"""
for nio in self._nios:
if nio and isinstance(nio, NIOUDP):
self.manager.port_manager.release_udp_port(nio.lport, self._project)
if nio:
yield from nio.close()
try:
yield from Bridge.delete(self)