summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_router-advert.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-22 08:51:45 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-22 08:51:45 +0200
commitbec3e9de40b57a1d7cd805ddcdd498033105679b (patch)
tree3e3ce9451776b5c8473541b8b2d5714a8b97304a /smoketest/scripts/cli/test_service_router-advert.py
parent83d7aa2ff189fd2d4909066a284b3459003b11ab (diff)
downloadvyos-1x-bec3e9de40b57a1d7cd805ddcdd498033105679b.tar.gz
vyos-1x-bec3e9de40b57a1d7cd805ddcdd498033105679b.zip
smoketest: router-advert: T4550: test deprecate-prefix & decrement-lifetime CLI option
Diffstat (limited to 'smoketest/scripts/cli/test_service_router-advert.py')
-rwxr-xr-xsmoketest/scripts/cli/test_service_router-advert.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_router-advert.py b/smoketest/scripts/cli/test_service_router-advert.py
index 6e40981ce..873be7df0 100755
--- a/smoketest/scripts/cli/test_service_router-advert.py
+++ b/smoketest/scripts/cli/test_service_router-advert.py
@@ -151,5 +151,21 @@ class TestServiceRADVD(VyOSUnitTestSHIM.TestCase):
self.assertIn(tmp, config)
+ def test_deprecate_prefix(self):
+ self.cli_set(base_path + ['prefix', prefix, 'valid-lifetime', 'infinity'])
+ self.cli_set(base_path + ['prefix', prefix, 'deprecate-prefix'])
+ self.cli_set(base_path + ['prefix', prefix, 'decrement-lifetime'])
+
+ # commit changes
+ self.cli_commit()
+
+ config = read_file(RADVD_CONF)
+
+ tmp = get_config_value('DeprecatePrefix')
+ self.assertEqual(tmp, 'on')
+
+ tmp = get_config_value('DecrementLifetimes')
+ self.assertEqual(tmp, 'on')
+
if __name__ == '__main__':
unittest.main(verbosity=2)