summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-04-16 11:15:56 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2024-04-16 11:15:56 +0300
commit82fdbedb79cf1c0a253657dfe7f23dee58c0dd47 (patch)
tree457f430babfa3aab6a2508720ab9bb0177583899 /smoketest/scripts
parent0aabfbbbf5619a11c4a9d4a9eb4ed402ce62d51b (diff)
downloadvyos-1x-82fdbedb79cf1c0a253657dfe7f23dee58c0dd47.tar.gz
vyos-1x-82fdbedb79cf1c0a253657dfe7f23dee58c0dd47.zip
pppoe-server: T6141: T5364: PPPoE-server add pado-delay without sessions fails
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_service_pppoe-server.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_pppoe-server.py b/smoketest/scripts/cli/test_service_pppoe-server.py
index 8514801a8..fa3090e25 100755
--- a/smoketest/scripts/cli/test_service_pppoe-server.py
+++ b/smoketest/scripts/cli/test_service_pppoe-server.py
@@ -266,5 +266,28 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase):
self.assertEqual(conf['radius']['acct-interim-jitter'], radius_acct_interim_jitter)
+ def test_pppoe_server_pado_delay(self):
+ delay_without_sessions = '10'
+ delays = {'20': '200', '30': '300'}
+
+ self.basic_config()
+
+ self.set(['pado-delay', delay_without_sessions])
+ self.cli_commit()
+
+ conf = ConfigParser(allow_no_value=True, delimiters='=')
+ conf.read(self._config_file)
+ self.assertEqual(conf['pppoe']['pado-delay'], delay_without_sessions)
+
+ for delay, sessions in delays.items():
+ self.set(['pado-delay', delay, 'sessions', sessions])
+ self.cli_commit()
+
+ conf = ConfigParser(allow_no_value=True, delimiters='=')
+ conf.read(self._config_file)
+
+ self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,-1:300')
+
+
if __name__ == '__main__':
unittest.main(verbosity=2)