From c0b55338a9503a7db49690fca0ec028bb8683875 Mon Sep 17 00:00:00 2001
From: Thomas Mangin <thomas.mangin@exa.net.uk>
Date: Wed, 25 Mar 2020 09:34:58 +0000
Subject: update to use Interface.listing

---
 scripts/cli/test_interfaces_ethernet.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'scripts/cli/test_interfaces_ethernet.py')

diff --git a/scripts/cli/test_interfaces_ethernet.py b/scripts/cli/test_interfaces_ethernet.py
index a6c5e902c..ddc6ffb27 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.interfaces import list_interfaces_of_type
+from vyos.ifconfig import Interface
 
 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 list_interfaces_of_type("ethernet"):
+        for tmp in Interface.listing("ethernet"):
             if not '.' in tmp:
                 self._interfaces.append(tmp)
 
-- 
cgit v1.2.3