summaryrefslogtreecommitdiff
path: root/scripts/cli/test_interfaces_ethernet.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cli/test_interfaces_ethernet.py')
-rwxr-xr-xscripts/cli/test_interfaces_ethernet.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/cli/test_interfaces_ethernet.py b/scripts/cli/test_interfaces_ethernet.py
index 330db08e0..f8eac6ec3 100755
--- a/scripts/cli/test_interfaces_ethernet.py
+++ b/scripts/cli/test_interfaces_ethernet.py
@@ -25,11 +25,11 @@ class EthernetInterfaceTest(BasicInterfaceTest.BaseTest):
self._test_mtu = True
self._interfaces = []
- # auto detect all ethernet interfaces
- for interface in list_interfaces_of_type("ethernet"):
- if '.' not in interface:
- self._interfaces.append(interface)
-
+ # we need to filter out VLAN interfaces identified by a dot (.)
+ # in their name - just in case!
+ for tmp in list_interfaces_of_type("ethernet"):
+ if not '.' in tmp:
+ self._interfaces.append(tmp)
if __name__ == '__main__':