summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-04 22:40:53 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-04 22:41:47 +0200
commit743627b9df6f7e8e34b544270ece4bc64a90b438 (patch)
tree71370aced91a1bf9f4f5eadd56abd613ae713505 /scripts
parent6cdcbd0aae79a42e32c2f611083f287b80564930 (diff)
downloadvyos-1x-743627b9df6f7e8e34b544270ece4bc64a90b438.tar.gz
vyos-1x-743627b9df6f7e8e34b544270ece4bc64a90b438.zip
router-advert: check 'infinity' option in script logic
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cli/test_service_router-advert.py3
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')