mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-17 01:04:51 +02:00
Interface ending with -nic are special ethernet interface
It's libvirt internal stuff Fix #1114
This commit is contained in:
parent
53c4cba1f6
commit
e8a35ac41f
@ -243,4 +243,7 @@ def interfaces():
|
|||||||
for special_interface in ("lo", "vmnet", "vboxnet", "docker", "lxcbr", "virbr", "ovs-system", "veth", "fw", "p2p", "bridge", "vmware", "virtualbox"):
|
for special_interface in ("lo", "vmnet", "vboxnet", "docker", "lxcbr", "virbr", "ovs-system", "veth", "fw", "p2p", "bridge", "vmware", "virtualbox"):
|
||||||
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"):
|
||||||
|
if result["name"].lower().endswith(special_interface):
|
||||||
|
result["special"] = True
|
||||||
return results
|
return results
|
||||||
|
Loading…
Reference in New Issue
Block a user