Adapters for VMware VMs.

This commit is contained in:
Jeremy committed 2015-05-15 19:09:48 -06:00
1 parent 0ac27c40da
commit cb7b9e8190
4 files changed
+125 -7

No files matched your search

+2 -1
View File
@@ -69,7 +69,8 @@ def get_windows_interfaces():
# adapter is connected or media disconnected
npf_interface = "\\Device\\NPF_{guid}".format(guid=adapter.GUID)
interfaces.append({"id": npf_interface,
"name": adapter.NetConnectionID})
"name": adapter.NetConnectionID,
"netcard": adapter.name})
except (AttributeError, pywintypes.com_error):
log.warn("Could not use the COM service to retrieve interface info, trying using the registry...")
return _get_windows_interfaces_from_registry()