summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-01 19:58:08 +0200
committerGitHub <noreply@github.com>2022-08-01 19:58:08 +0200
commit394ebb01d21713f4154e72cee4aaea674da19359 (patch)
treef6f0c21fc5a0d249ab42d8d543467b39921c8c9a /src
parent4168e03721b2a9595de4090fddf1280d39ccce4c (diff)
parent0564f830a77995de4d074ae948a5f1d1d3503f90 (diff)
downloadvyos-1x-394ebb01d21713f4154e72cee4aaea674da19359.tar.gz
vyos-1x-394ebb01d21713f4154e72cee4aaea674da19359.zip
Merge pull request #1448 from initramfs/fix-t4582-equuleus
backport: router-advert: T4582: fix preferred cannot equal valid lifetime
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/service_router-advert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/service_router-advert.py b/src/conf_mode/service_router-advert.py
index 9afcdd63e..367567bf6 100755
--- a/src/conf_mode/service_router-advert.py
+++ b/src/conf_mode/service_router-advert.py
@@ -92,8 +92,8 @@ def verify(rtradv):
if preferred_lifetime == 'infinity':
preferred_lifetime = 4294967295
- if not (int(valid_lifetime) > int(preferred_lifetime)):
- raise ConfigError('Prefix valid-lifetime must be greater then preferred-lifetime')
+ if not (int(valid_lifetime) >= int(preferred_lifetime)):
+ raise ConfigError('Prefix valid-lifetime must be greater then or equal to preferred-lifetime')
return None