summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_pppoe-server.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-17 08:59:49 +0200
committerGitHub <noreply@github.com>2024-08-17 08:59:49 +0200
commitc6dee2f3dba77bdbfb7d54f9c01f425c5f3c9176 (patch)
treedc655811096a43eb333de14473f96fa89e4a6487 /smoketest/scripts/cli/test_service_pppoe-server.py
parenta43b5c7d1ca00fe67af08ae576889e657ac9b7b0 (diff)
parent3bb5d5df1e38a6d995395b6e69ad142e6445b09d (diff)
downloadvyos-1x-c6dee2f3dba77bdbfb7d54f9c01f425c5f3c9176.tar.gz
vyos-1x-c6dee2f3dba77bdbfb7d54f9c01f425c5f3c9176.zip
Merge pull request #3995 from vyos/mergify/bp/circinus/pr-3987
ipoe_server: T6649: Accel-ppp separate vlan-mon from listen interfaces (backport #3987)
Diffstat (limited to 'smoketest/scripts/cli/test_service_pppoe-server.py')
-rwxr-xr-xsmoketest/scripts/cli/test_service_pppoe-server.py7
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])