summaryrefslogtreecommitdiff
path: root/scripts/cli/test_interfaces_bonding.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-25 19:43:57 +0100
committerGitHub <noreply@github.com>2020-03-25 19:43:57 +0100
commit653b063ca2e755c788b73940470f4abbdf223eec (patch)
treeaf24cc429bb74b69bc8d580569d9270c1565cb2f /scripts/cli/test_interfaces_bonding.py
parentaedc1fcdd2d0656b1252ba6680b0158c7e7ee7af (diff)
parentc0b55338a9503a7db49690fca0ec028bb8683875 (diff)
downloadvyos-1x-653b063ca2e755c788b73940470f4abbdf223eec.tar.gz
vyos-1x-653b063ca2e755c788b73940470f4abbdf223eec.zip
Merge pull request #8 from thomas-mangin/master
ifconfig: replace list_interfaces_of_type by Interface.listing
Diffstat (limited to 'scripts/cli/test_interfaces_bonding.py')
-rwxr-xr-xscripts/cli/test_interfaces_bonding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cli/test_interfaces_bonding.py b/scripts/cli/test_interfaces_bonding.py
index ecd12b957..36433ed62 100755
--- a/scripts/cli/test_interfaces_bonding.py
+++ b/scripts/cli/test_interfaces_bonding.py
@@ -18,7 +18,7 @@ import unittest
from base_interfaces_test import BasicInterfaceTest
-from vyos.interfaces import list_interfaces_of_type
+from vyos.ifconfig import Interface
from vyos.configsession import ConfigSessionError
class BondingInterfaceTest(BasicInterfaceTest.BaseTest):
@@ -33,7 +33,7 @@ class BondingInterfaceTest(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)