diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-11 21:19:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 21:19:06 +0200 |
commit | 11e8098438561b8a91ac7d18bfead260456ff6e0 (patch) | |
tree | 49724e190bb5e7c4ecb697e19c73e377f608b0ee /scripts/cli/test_interfaces_ethernet.py | |
parent | d2b7359a7bd953e03b5dcdd440e3fa7c633fdfa4 (diff) | |
parent | 73a9ff255de4be4e8a9d9cb258a5f5c9d8311098 (diff) | |
download | vyos-1x-11e8098438561b8a91ac7d18bfead260456ff6e0.tar.gz vyos-1x-11e8098438561b8a91ac7d18bfead260456ff6e0.zip |
Merge pull request #9 from thomas-mangin/T2238
interfaces: T2238: update code to match new API
Diffstat (limited to 'scripts/cli/test_interfaces_ethernet.py')
-rwxr-xr-x | scripts/cli/test_interfaces_ethernet.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |