summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_accel_ppp_test.py
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-05-23 17:39:56 +0600
committerkhramshinr <khramshinr@gmail.com>2024-05-27 18:23:32 +0600
commit4d84f786f64d2b80046100ead5d0e8c1eef7418c (patch)
tree1b51a268300b87d5e85a5dd98996067237b83feb /smoketest/scripts/cli/base_accel_ppp_test.py
parent22dae74ef6037ad6a97da7118df42e41acbb117b (diff)
downloadvyos-1x-4d84f786f64d2b80046100ead5d0e8c1eef7418c.tar.gz
vyos-1x-4d84f786f64d2b80046100ead5d0e8c1eef7418c.zip
T4576: Accel-ppp logging level configuration
add ability to change logging level config for: * VPN L2TP * VPN PPTP * VPN SSTP * IPoE Server * PPPoE Serve
Diffstat (limited to 'smoketest/scripts/cli/base_accel_ppp_test.py')
-rw-r--r--smoketest/scripts/cli/base_accel_ppp_test.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_accel_ppp_test.py b/smoketest/scripts/cli/base_accel_ppp_test.py
index ab723e707..212dc58ab 100644
--- a/smoketest/scripts/cli/base_accel_ppp_test.py
+++ b/smoketest/scripts/cli/base_accel_ppp_test.py
@@ -628,3 +628,21 @@ delegate={delegate_2_prefix},{delegate_mask},name={pool_name}"""
self.assertEqual(conf['connlimit']['limit'], limits)
self.assertEqual(conf['connlimit']['burst'], burst)
self.assertEqual(conf['connlimit']['timeout'], timeout)
+
+ def test_accel_log_level(self):
+ self.basic_config()
+ self.cli_commit()
+
+ # check default value
+ conf = ConfigParser(allow_no_value=True)
+ conf.read(self._config_file)
+ self.assertEqual(conf['log']['level'], '3')
+
+ for log_level in range(0, 5):
+ self.set(['log', 'level', str(log_level)])
+ self.cli_commit()
+ # Validate configuration values
+ conf = ConfigParser(allow_no_value=True)
+ conf.read(self._config_file)
+
+ self.assertEqual(conf['log']['level'], str(log_level))