diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-04 22:40:53 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-04 22:41:47 +0200 |
commit | 743627b9df6f7e8e34b544270ece4bc64a90b438 (patch) | |
tree | 71370aced91a1bf9f4f5eadd56abd613ae713505 | |
parent | 6cdcbd0aae79a42e32c2f611083f287b80564930 (diff) | |
download | vyos-1x-743627b9df6f7e8e34b544270ece4bc64a90b438.tar.gz vyos-1x-743627b9df6f7e8e34b544270ece4bc64a90b438.zip |
router-advert: check 'infinity' option in script logic
-rwxr-xr-x | scripts/cli/test_service_router-advert.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/cli/test_service_router-advert.py b/scripts/cli/test_service_router-advert.py index cc251e355..ec2110c8a 100755 --- a/scripts/cli/test_service_router-advert.py +++ b/scripts/cli/test_service_router-advert.py @@ -47,6 +47,7 @@ class TestServiceRADVD(unittest.TestCase): def test_single(self): self.session.set(base_path + ['prefix', '::/64', 'no-on-link-flag']) self.session.set(base_path + ['prefix', '::/64', 'no-autonomous-flag']) + self.session.set(base_path + ['prefix', '::/64', 'valid-lifetime', 'infinity']) self.session.set(base_path + ['dnssl', '2001:db8::1234']) self.session.set(base_path + ['other-config-flag']) @@ -80,7 +81,7 @@ class TestServiceRADVD(unittest.TestCase): # this is a default value tmp = get_config_value('AdvValidLifetime') - self.assertEqual(tmp, '2592000') + self.assertEqual(tmp, 'infinity') # this is a default value tmp = get_config_value('AdvPreferredLifetime') |