diff options
author | John Estabrook <jestabro@vyos.io> | 2023-05-25 22:58:19 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-05-26 14:04:01 -0500 |
commit | bec69832ef2d6eef4c13635cb50d19b4d850f659 (patch) | |
tree | cc7d16851faa9699604aafc131c9b2fefc3648e4 /smoketest/scripts | |
parent | 2ba5207ed96741c8b56edf23a66f966ea6b44c23 (diff) | |
download | vyos-1x-bec69832ef2d6eef4c13635cb50d19b4d850f659.tar.gz vyos-1x-bec69832ef2d6eef4c13635cb50d19b4d850f659.zip |
T5242: example use of cli_defined
Diffstat (limited to 'smoketest/scripts')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py index 2f730abfb..aa9c15b65 100644 --- a/smoketest/scripts/cli/base_interfaces_test.py +++ b/smoketest/scripts/cli/base_interfaces_test.py @@ -35,6 +35,7 @@ from vyos.util import process_named_running from vyos.util import get_interface_config from vyos.validate import is_intf_addr_assigned from vyos.validate import is_ipv6_link_local +from vyos.xml_ref import cli_defined def is_mirrored_to(interface, mirror_if, qdisc): """ @@ -82,6 +83,11 @@ class BasicInterfaceTest: def setUpClass(cls): super(BasicInterfaceTest.TestCase, cls).setUpClass() + # XXX the case of test_vif_8021q_mtu_limits, below, shows that + # we should extend cli_defined to support more complex queries + cls._test_vlan = cli_defined(cls._base_path, 'vif') + cls._test_qinq = cli_defined(cls._base_path, 'vif-s') + # Setup mirror interfaces for SPAN (Switch Port Analyzer) for span in cls._mirror_interfaces: section = Section.section(span) |