From 73a9ff255de4be4e8a9d9cb258a5f5c9d8311098 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Sat, 11 Apr 2020 20:15:41 +0100 Subject: interfaces: T2238: update code to match new API --- scripts/cli/test_interfaces_bridge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/cli/test_interfaces_bridge.py') 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) -- cgit v1.2.3