diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-08-15 13:20:31 +0300 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-16 09:38:06 +0000 |
commit | 3bb5d5df1e38a6d995395b6e69ad142e6445b09d (patch) | |
tree | f34e164c77bf40674b4b309f8f6a6a5d3e4f7253 /smoketest/scripts/cli/test_service_pppoe-server.py | |
parent | 1ffdf48642e454d7f9ddead8d79f19b96dea00d4 (diff) | |
download | vyos-1x-3bb5d5df1e38a6d995395b6e69ad142e6445b09d.tar.gz vyos-1x-3bb5d5df1e38a6d995395b6e69ad142e6445b09d.zip |
T6649: Accel-ppp separate vlan-mon from listen interfacesmergify/bp/circinus/pr-3987
(cherry picked from commit 663e468de2b431f771534b4e3a2d00a5924b98fe)
Diffstat (limited to 'smoketest/scripts/cli/test_service_pppoe-server.py')
-rwxr-xr-x | smoketest/scripts/cli/test_service_pppoe-server.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_pppoe-server.py b/smoketest/scripts/cli/test_service_pppoe-server.py index 97c63d4cb..3cc1b08e0 100755 --- a/smoketest/scripts/cli/test_service_pppoe-server.py +++ b/smoketest/scripts/cli/test_service_pppoe-server.py @@ -21,6 +21,7 @@ from base_accel_ppp_test import BasicAccelPPPTest from configparser import ConfigParser from vyos.utils.file import read_file from vyos.template import range_to_regex +from vyos.configsession import ConfigSessionError local_if = ['interfaces', 'dummy', 'dum667'] ac_name = 'ACN' @@ -133,6 +134,12 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase): # Test configuration of local authentication for PPPoE server self.basic_config() + self.set(['interface', interface, 'vlan-mon']) + + # cannot use option "vlan-mon" if no "vlan" set + with self.assertRaises(ConfigSessionError): + self.cli_commit() + for vlan in vlans: self.set(['interface', interface, 'vlan', vlan]) |