diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-03-21 21:08:16 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-03-21 21:09:50 +0100 |
commit | d58e6dbc71db8b548b8f19b24a5279fe1a83fc4a (patch) | |
tree | 343dac69e84292506bd6e0c0e0b3a5460b52055a /yang/frr-bgp-route-map.yang | |
parent | Merge pull request #13073 from donaldsharp/static_use_after_free (diff) | |
download | frr-d58e6dbc71db8b548b8f19b24a5279fe1a83fc4a.tar.xz frr-d58e6dbc71db8b548b8f19b24a5279fe1a83fc4a.zip |
bgpd: Do not allow setting `set distance` via route-maps to zero
It's not allowed to install routes with zero distance, let's disallow this
for route-maps as well.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'yang/frr-bgp-route-map.yang')
-rw-r--r-- | yang/frr-bgp-route-map.yang | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yang/frr-bgp-route-map.yang b/yang/frr-bgp-route-map.yang index 90163f125..666f2bb23 100644 --- a/yang/frr-bgp-route-map.yang +++ b/yang/frr-bgp-route-map.yang @@ -760,7 +760,7 @@ module frr-bgp-route-map { when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:distance')"; leaf distance { type uint8 { - range "0..255"; + range "1..255"; } } } |