mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
10 files changed
+124
-9
No files matched your search
@@ -64,6 +64,10 @@ class Cloud(BaseNode):
|
||||
port_number += 1
|
||||
self._ports_mapping = ports
|
||||
|
||||
@property
|
||||
def nios(self):
|
||||
return self._nios
|
||||
|
||||
def _interfaces(self):
|
||||
return gns3server.utils.interfaces.interfaces()
|
||||
|
||||
@@ -202,6 +206,7 @@ class Cloud(BaseNode):
|
||||
rhost=nio.rhost,
|
||||
rport=nio.rport))
|
||||
|
||||
yield from self._ubridge_apply_filters(bridge_name, nio.filters)
|
||||
if port_info["type"] in ("ethernet", "tap"):
|
||||
|
||||
if sys.platform.startswith("win"):
|
||||
@@ -311,6 +316,19 @@ class Cloud(BaseNode):
|
||||
self.status = "stopped"
|
||||
self._nios[port_number] = nio
|
||||
|
||||
@asyncio.coroutine
|
||||
def update_nio(self, port_number, nio):
|
||||
"""
|
||||
Update an nio on this node
|
||||
|
||||
:param nio: NIO instance to add
|
||||
:param port_number: port to allocate for the NIO
|
||||
"""
|
||||
|
||||
bridge_name = "{}-{}".format(self._id, port_number)
|
||||
if self._ubridge_hypervisor and self._ubridge_hypervisor.is_running():
|
||||
yield from self._ubridge_apply_filters(bridge_name, nio.filters)
|
||||
|
||||
@asyncio.coroutine
|
||||
def _delete_ubridge_connection(self, port_number):
|
||||
"""
|
||||
|
||||
@@ -38,6 +38,7 @@ class NIOUDP(NIO):
|
||||
self._lport = lport
|
||||
self._rhost = rhost
|
||||
self._rport = rport
|
||||
assert isinstance(filters, dict)
|
||||
self._filters = filters
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user