From b0536cb24b35d99f59762c38cd8ba02e3038f94b Mon Sep 17 00:00:00 2001 From: Dan Sneddon Date: Thu, 14 May 2015 10:48:32 -0700 Subject: 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 --- os_net_config/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os_net_config') 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) -- cgit 1.2.3-korg