summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_pppoe-server.py
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-04-25 13:27:50 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2024-04-25 13:27:50 +0300
commit107ee099e82397b31fca8cf1ac3860cbf76f0596 (patch)
tree5bbbf991b00323b38391152da751b5a2c45038ff /smoketest/scripts/cli/test_service_pppoe-server.py
parenta63e934073744772dc9fd919b7bb376ed9ceeab3 (diff)
downloadvyos-1x-107ee099e82397b31fca8cf1ac3860cbf76f0596.tar.gz
vyos-1x-107ee099e82397b31fca8cf1ac3860cbf76f0596.zip
pppoe-server: T6234: PPPoE-server pado-delay refactoring
Diffstat (limited to 'smoketest/scripts/cli/test_service_pppoe-server.py')
-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__':