aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/utils.py
diff options
context:
space:
mode:
authorDan Sneddon <dsneddon@redhat.com>2015-05-14 10:48:32 -0700
committerDan Sneddon <dsneddon@redhat.com>2015-05-14 10:48:32 -0700
commitb0536cb24b35d99f59762c38cd8ba02e3038f94b (patch)
tree6d1cdbbc953b8109af4dd581b65007c3cedce7c7 /os_net_config/utils.py
parentfa4966f4dba8aab9fe17ac5711071e9e56384079 (diff)
Add 'eno*' interfaces to embedded_nics
On certain systems, the embedded NICs appear as eno1, eno2, etc. This patch adds 'eno' to 'em' and 'eth' as interface names that should be considered embedded NICs. Change-Id: Icc49596573bdbb8af25f934a647f0a2ab82adaa5
Diffstat (limited to 'os_net_config/utils.py')
-rw-r--r--os_net_config/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/os_net_config/utils.py b/os_net_config/utils.py
index cd202f6..f0ab307 100644
--- a/os_net_config/utils.py
+++ b/os_net_config/utils.py
@@ -81,7 +81,8 @@ def ordered_active_nics():
for name in glob.iglob(_SYS_CLASS_NET + '/*'):
nic = name[(len(_SYS_CLASS_NET) + 1):]
if _is_active_nic(nic):
- if nic.startswith('em') or nic.startswith('eth'):
+ if nic.startswith('em') or nic.startswith('eth') or \
+ nic.startswith('eno'):
embedded_nics.append(nic)
else:
nics.append(nic)