summaryrefslogtreecommitdiff
path: root/scripts/cli
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cli')
-rwxr-xr-xscripts/cli/test_interfaces_bonding.py4
-rwxr-xr-xscripts/cli/test_interfaces_bridge.py4
-rwxr-xr-xscripts/cli/test_interfaces_ethernet.py4
3 files changed, 6 insertions, 6 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)
diff --git a/scripts/cli/test_interfaces_bridge.py b/scripts/cli/test_interfaces_bridge.py
index af6b62724..03c78c210 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.ifconfig import Interface
+from vyos.ifconfig import Section
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 Interface.listing("ethernet"):
+ for tmp in Section.interfaces("ethernet"):
if not '.' in tmp:
members.append(tmp)
diff --git a/scripts/cli/test_interfaces_ethernet.py b/scripts/cli/test_interfaces_ethernet.py
index ddc6ffb27..373c81680 100755
--- a/scripts/cli/test_interfaces_ethernet.py
+++ b/scripts/cli/test_interfaces_ethernet.py
@@ -17,7 +17,7 @@
import unittest
from base_interfaces_test import BasicInterfaceTest
-from vyos.ifconfig import Interface
+from vyos.ifconfig import Section
class EthernetInterfaceTest(BasicInterfaceTest.BaseTest):
def setUp(self):
@@ -29,7 +29,7 @@ class EthernetInterfaceTest(BasicInterfaceTest.BaseTest):
# 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:
self._interfaces.append(tmp)