mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
Merge branch 'master' into 2.2
This commit is contained in:
commit
9db55cafec
@ -311,7 +311,7 @@ class Cloud(BaseNode):
|
|||||||
if not port_info["interface"] in network_interfaces:
|
if not port_info["interface"] in network_interfaces:
|
||||||
raise NodeError("Interface '{}' could not be found on this system, please update '{}'".format(port_info["interface"], self.name))
|
raise NodeError("Interface '{}' could not be found on this system, please update '{}'".format(port_info["interface"], self.name))
|
||||||
|
|
||||||
if sys.platform.startswith("linux"):
|
if sys.platform.startswith("linux") or sys.platform.startswith("openbsd"):
|
||||||
await self._add_linux_ethernet(port_info, bridge_name)
|
await self._add_linux_ethernet(port_info, bridge_name)
|
||||||
elif sys.platform.startswith("darwin"):
|
elif sys.platform.startswith("darwin"):
|
||||||
await self._add_osx_ethernet(port_info, bridge_name)
|
await self._add_osx_ethernet(port_info, bridge_name)
|
||||||
|
|||||||
@ -147,7 +147,7 @@ def is_interface_up(interface):
|
|||||||
:returns: boolean
|
:returns: boolean
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if sys.platform.startswith("linux"):
|
if sys.platform.startswith("linux") or sys.platform.startswith("openbsd"):
|
||||||
|
|
||||||
if interface not in psutil.net_if_addrs():
|
if interface not in psutil.net_if_addrs():
|
||||||
return False
|
return False
|
||||||
@ -234,7 +234,7 @@ def interfaces():
|
|||||||
result["special"] = False
|
result["special"] = False
|
||||||
for special_interface in ("lo", "vmnet", "vboxnet", "docker", "lxcbr",
|
for special_interface in ("lo", "vmnet", "vboxnet", "docker", "lxcbr",
|
||||||
"virbr", "ovs-system", "veth", "fw", "p2p",
|
"virbr", "ovs-system", "veth", "fw", "p2p",
|
||||||
"bridge", "vmware", "virtualbox", "gns3"):
|
"bridge", "vmware", "virtualbox", "gns3","veb"):
|
||||||
if result["name"].lower().startswith(special_interface):
|
if result["name"].lower().startswith(special_interface):
|
||||||
result["special"] = True
|
result["special"] = True
|
||||||
for special_interface in ("-nic"):
|
for special_interface in ("-nic"):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user