mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-30 09:38:53 +00:00
Try to fix VPCS and loobpack adapters not working together. Ref #771.
This commit is contained in:
parent
5166d894eb
commit
3c384a7bf0
@ -603,7 +603,7 @@ class BaseNode:
|
|||||||
yield from self._ubridge_send('bridge add_nio_ethernet {name} "{interface}"'.format(name=bridge_name,
|
yield from self._ubridge_send('bridge add_nio_ethernet {name} "{interface}"'.format(name=bridge_name,
|
||||||
interface=npf_id))
|
interface=npf_id))
|
||||||
else:
|
else:
|
||||||
raise NodeError("Could not find NPF id for VMnet interface {}".format(ethernet_interface))
|
raise NodeError("Could not find NPF id for interface {}".format(ethernet_interface))
|
||||||
|
|
||||||
if block_host_traffic:
|
if block_host_traffic:
|
||||||
if source_mac:
|
if source_mac:
|
||||||
|
@ -188,16 +188,7 @@ class Cloud(BaseNode):
|
|||||||
if port_info["type"] in ("ethernet", "tap"):
|
if port_info["type"] in ("ethernet", "tap"):
|
||||||
|
|
||||||
if sys.platform.startswith("win"):
|
if sys.platform.startswith("win"):
|
||||||
windows_interfaces = self._interfaces()
|
yield from self._add_ubridge_ethernet_connection(bridge_name, port_info["interface"])
|
||||||
npf = None
|
|
||||||
for interface in windows_interfaces:
|
|
||||||
if port_info["interface"] == interface["name"]:
|
|
||||||
npf = interface["id"]
|
|
||||||
if npf:
|
|
||||||
yield from self._ubridge_send('bridge add_nio_ethernet {name} "{interface}"'.format(name=bridge_name,
|
|
||||||
interface=npf))
|
|
||||||
else:
|
|
||||||
raise NodeError("Could not find NPF id for interface {}".format(port_info["interface"]))
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user