mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Mark interface type upstream.
This commit is contained in:
1 parent
d159cbcc6d
commit
50aa198ba7
2 files changed
+11
-8
No files matched your search
@@ -54,12 +54,8 @@ class Cloud(BaseNode):
|
||||
host_interfaces = []
|
||||
network_interfaces = interfaces()
|
||||
for interface in network_interfaces:
|
||||
interface_type = "ethernet"
|
||||
if interface["name"].startswith("tap"):
|
||||
# found no way to reliably detect a TAP interface
|
||||
interface_type = "tap"
|
||||
host_interfaces.append({"name": interface["name"],
|
||||
"type": interface_type})
|
||||
"type": interface["type"]})
|
||||
|
||||
return {"name": self.name,
|
||||
"node_id": self.id,
|
||||
|
||||
Reference in new issue
Block a user