Mark interface type upstream.

This commit is contained in:
grossmj committed 2016-07-10 14:54:31 -06:00
1 parent d159cbcc6d
commit 50aa198ba7
2 files changed
+11 -8

No files matched your search

+1 -5
View File
@@ -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,