summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-01 21:28:48 +0200
committerGitHub <noreply@github.com>2024-05-01 21:28:48 +0200
commite019155e3d7a1383f480f2bdf4c7e17d807fc7db (patch)
treeb95ccc6bbe06e1e0dfee8d3c908316eb2ae72a35 /smoketest
parentc37bbccf18b82f47bb7211a445b054d3606da3cb (diff)
parent0891817c6f0b4d4bb3e8d4c21f2873ab43e1be26 (diff)
downloadvyos-1x-e019155e3d7a1383f480f2bdf4c7e17d807fc7db.tar.gz
vyos-1x-e019155e3d7a1383f480f2bdf4c7e17d807fc7db.zip
Merge pull request #3388 from vyos/mergify/bp/sagitta/pr-3364
pppoe-server: T6234: PPPoE-server pado-delay refactoring (backport #3364)
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_service_pppoe-server.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_service_pppoe-server.py b/smoketest/scripts/cli/test_service_pppoe-server.py
index 5a48b1f58..97c63d4cb 100755
--- a/smoketest/scripts/cli/test_service_pppoe-server.py
+++ b/smoketest/scripts/cli/test_service_pppoe-server.py
@@ -168,7 +168,14 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase):
conf = ConfigParser(allow_no_value=True, delimiters='=')
conf.read(self._config_file)
- self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,-1:300')
+ self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,30:300')
+
+ self.set(['pado-delay', 'disable', 'sessions', '400'])
+ self.cli_commit()
+
+ conf = ConfigParser(allow_no_value=True, delimiters='=')
+ conf.read(self._config_file)
+ self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,30:300,-1:400')
if __name__ == '__main__':