diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-08-01 07:27:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 07:27:28 +0200 |
commit | 7d6b760503f35e2151e015f6aa640f08bffa0f81 (patch) | |
tree | 773543282fda7e10740b338ad8a4a3a5256bac75 /src | |
parent | 0c4e1eae2f824e66b397da5632a2d9a9abcb94ca (diff) | |
parent | f6efe3035d352970dc492450c3c9ddf710dda5fe (diff) | |
download | vyos-1x-7d6b760503f35e2151e015f6aa640f08bffa0f81.tar.gz vyos-1x-7d6b760503f35e2151e015f6aa640f08bffa0f81.zip |
Merge pull request #1447 from initramfs/fix-t4582-current
router-advert: T4582: fix preferred cannot equal valid lifetime
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/service_router-advert.py | 4 |
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 ff7caaa84..1b8377a4a 100755 --- a/src/conf_mode/service_router-advert.py +++ b/src/conf_mode/service_router-advert.py @@ -90,8 +90,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') if 'name_server_lifetime' in interface_config: # man page states: |