Commit 2751c5d0 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Fix detection of eth* interfaces

parent b8dd2a93
......@@ -57,6 +57,6 @@ class NetworkDevices:
"""Return a dict of only ethernet devices."""
# Filter out ethernet interfaces
ethernet_devices = {x: self._network_devices[x] for x in self._network_devices if re.match('^en[pso]', x)}
ethernet_devices = {x: self._network_devices[x] for x in self._network_devices if re.match('^e(?:n[pso]|th)', x)}
return ethernet_devices
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment