adapter_remove_nio_binding is a coroutine for all device type

It's cleaner
This commit is contained in:
Julien Duponchelle committed 2016-01-11 15:19:15 +01:00
1 parent 5a28b9409a
commit 758fb2a0e7
3 files changed
+6 -4

No files matched your search

+2
View File
@@ -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.