summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authoranderbak <bjanderson7583@gmail.com>2026-05-12 14:41:35 +0000
committerGitHub <noreply@github.com>2026-05-12 17:41:35 +0300
commit1dd997d724449e941c6bf42be98529372d9f1530 (patch)
tree5ca8e037e5e6f395152eb24579cd32fd34cb3edb /smoketest/scripts/cli
parentab28ff732ca159438ef911cd91fd86ddd5000970 (diff)
downloadvyos-1x-1dd997d724449e941c6bf42be98529372d9f1530.tar.gz
vyos-1x-1dd997d724449e941c6bf42be98529372d9f1530.zip
frr: T8606: add watchfrr timeout option (#5165)
Co-authored-by: Christian Breunig <christian@breunig.cc>
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_system_frr.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_system_frr.py b/smoketest/scripts/cli/test_system_frr.py
index 9217f2b27..ea280dd27 100755
--- a/smoketest/scripts/cli/test_system_frr.py
+++ b/smoketest/scripts/cli/test_system_frr.py
@@ -196,5 +196,29 @@ class TestSystemFRR(VyOSUnitTestSHIM.TestCase):
daemons_config = read_file(config_file)
self.assertIn(f'MAX_FDS={default_descriptors}', daemons_config)
+ def test_frr_watchfrr_timeout(self):
+ default_watchfrr_timeout = default_value(base_path + ['watchfrr-timeout'])
+ watchfrr_timeout = '120'
+
+ self.cli_set(base_path + ['watchfrr-timeout', watchfrr_timeout])
+ self.cli_commit()
+
+ # read the config file and check content
+ daemons_config = read_file(config_file)
+ self.assertIn(
+ f'watchfrr_options="--timeout={watchfrr_timeout}"', daemons_config
+ )
+
+ # test remove of watchfrr-timeout
+ self.cli_delete(base_path)
+ self.cli_commit()
+
+ # read the config file and check content
+ daemons_config = read_file(config_file)
+ self.assertIn(
+ f'watchfrr_options="--timeout={default_watchfrr_timeout}"', daemons_config
+ )
+
+
if __name__ == '__main__':
unittest.main(verbosity=2, failfast=VyOSUnitTestSHIM.TestCase.debug_on())