diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-07-22 08:51:45 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-07-22 08:51:45 +0200 |
commit | bec3e9de40b57a1d7cd805ddcdd498033105679b (patch) | |
tree | 3e3ce9451776b5c8473541b8b2d5714a8b97304a /smoketest | |
parent | 83d7aa2ff189fd2d4909066a284b3459003b11ab (diff) | |
download | vyos-1x-bec3e9de40b57a1d7cd805ddcdd498033105679b.tar.gz vyos-1x-bec3e9de40b57a1d7cd805ddcdd498033105679b.zip |
smoketest: router-advert: T4550: test deprecate-prefix & decrement-lifetime CLI option
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_service_router-advert.py | 16 |
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) |