summaryrefslogtreecommitdiff
path: root/scripts/cli/test_interfaces_bonding.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-04-11 20:15:41 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-04-11 20:15:41 +0100
commit73a9ff255de4be4e8a9d9cb258a5f5c9d8311098 (patch)
tree49724e190bb5e7c4ecb697e19c73e377f608b0ee /scripts/cli/test_interfaces_bonding.py
parentd2b7359a7bd953e03b5dcdd440e3fa7c633fdfa4 (diff)
downloadvyos-1x-73a9ff255de4be4e8a9d9cb258a5f5c9d8311098.tar.gz
vyos-1x-73a9ff255de4be4e8a9d9cb258a5f5c9d8311098.zip
interfaces: T2238: update code to match new API
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 36433ed62..bfadc4a9d 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.ifconfig import Interface
+from vyos.ifconfig import Section
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 Interface.listing("ethernet"):
+ for tmp in Section.interfaces("ethernet"):
if not '.' in tmp:
members.append(tmp)