1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-17 22:08:35 +00:00

Interface ending with -nic are special ethernet interface

It's libvirt internal stuff

Fix #1114
This commit is contained in:
Julien Duponchelle 2017-07-12 16:13:46 +02:00
parent 53c4cba1f6
commit e8a35ac41f
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -243,4 +243,7 @@ def interfaces():
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):
result["special"] = True
for special_interface in ("-nic"):
if result["name"].lower().endswith(special_interface):
result["special"] = True
return results