mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Network handler for UDP port allocation and server network interfaces.
This commit is contained in:
1 parent
c002bbfb23
commit
50fea669b5
9 files changed
+134
-63
No files matched your search
@@ -807,7 +807,10 @@ class VirtualBoxVM(BaseVM):
|
||||
yield from self._control_vm("nic{} null".format(adapter_id + 1))
|
||||
|
||||
nio = adapter.get_nio(0)
|
||||
if str(nio) == "NIO UDP":
|
||||
self.manager.port_manager.release_udp_port(nio.lport)
|
||||
adapter.remove_nio(0)
|
||||
|
||||
log.info("VirtualBox VM '{name}' [{uuid}]: {nio} removed from adapter {adapter_id}".format(name=self.name,
|
||||
uuid=self.uuid,
|
||||
nio=nio,
|
||||
|
||||
Reference in new issue
Block a user