diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-25 09:34:58 +0000 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-25 09:34:58 +0000 |
commit | c0b55338a9503a7db49690fca0ec028bb8683875 (patch) | |
tree | af24cc429bb74b69bc8d580569d9270c1565cb2f /scripts/cli/test_interfaces_bridge.py | |
parent | aedc1fcdd2d0656b1252ba6680b0158c7e7ee7af (diff) | |
download | vyos-1x-c0b55338a9503a7db49690fca0ec028bb8683875.tar.gz vyos-1x-c0b55338a9503a7db49690fca0ec028bb8683875.zip |
update to use Interface.listing
Diffstat (limited to 'scripts/cli/test_interfaces_bridge.py')
-rwxr-xr-x | scripts/cli/test_interfaces_bridge.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cli/test_interfaces_bridge.py b/scripts/cli/test_interfaces_bridge.py index 100f6fdf2..af6b62724 100755 --- a/scripts/cli/test_interfaces_bridge.py +++ b/scripts/cli/test_interfaces_bridge.py @@ -17,7 +17,7 @@ import unittest from base_interfaces_test import BasicInterfaceTest -from vyos.interfaces import list_interfaces_of_type +from vyos.ifconfig import Interface class BridgeInterfaceTest(BasicInterfaceTest.BaseTest): def setUp(self): @@ -30,7 +30,7 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest): members = [] # 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"): + for tmp in Interface.listing("ethernet"): if not '.' in tmp: members.append(tmp) |