summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-05-01 17:34:00 +0200
committerGitHub <noreply@github.com>2024-05-01 17:34:00 +0200
commit6872b3f1a3f3765e0f32fdc9e701aa9b1c490e7f (patch)
treeca88715f2439ebc818039dc9897ce9ed4a910f24 /smoketest/scripts/cli
parente80e54cbece711d93895d3c7b78689bd282b8fd9 (diff)
parent107ee099e82397b31fca8cf1ac3860cbf76f0596 (diff)
downloadvyos-1x-6872b3f1a3f3765e0f32fdc9e701aa9b1c490e7f.tar.gz
vyos-1x-6872b3f1a3f3765e0f32fdc9e701aa9b1c490e7f.zip
Merge pull request #3364 from natali-rs1985/T6234-current
pppoe-server: T6234: PPPoE-server pado-delay refactoring
Diffstat (limited to 'smoketest/scripts/cli')
-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__':