mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
adapter_remove_nio_binding is a coroutine for all device type
It's cleaner
This commit is contained in:
1 parent
5a28b9409a
commit
758fb2a0e7
3 files changed
+6
-4
No files matched your search
@@ -912,6 +912,7 @@ class IOUVM(BaseVM):
|
||||
|
||||
self._adapters = self._ethernet_adapters + self._serial_adapters
|
||||
|
||||
@asyncio.coroutine
|
||||
def adapter_add_nio_binding(self, adapter_number, port_number, nio):
|
||||
"""
|
||||
Adds a adapter NIO binding.
|
||||
@@ -944,6 +945,7 @@ class IOUVM(BaseVM):
|
||||
except ProcessLookupError:
|
||||
log.error("Could not update iouyap configuration: process (PID={}) not found".format(self._iouyap_process.pid))
|
||||
|
||||
@asyncio.coroutine
|
||||
def adapter_remove_nio_binding(self, adapter_number, port_number):
|
||||
"""
|
||||
Removes an adapter NIO binding.
|
||||
|
||||
Reference in new issue
Block a user