diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2025-01-10 17:29:10 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2025-01-14 13:59:42 +0100 | 
| commit | f19b8668b3cbbad6d14eb348c9b8a0f7ac6ac46f (patch) | |
| tree | 5f0c3b2c69bdaeb1ebdbcf1bd1547110269fba96 /yang | |
| parent | ba4122d6dbc641e7549e947ed420301939e48529 (diff) | |
bgpd: add 'match community-count' command to restrict comm count
Add a mechanism in route-map to filter out route-map which have a list
of communities greater than the given number.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'yang')
| -rw-r--r-- | yang/frr-bgp-route-map.yang | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/yang/frr-bgp-route-map.yang b/yang/frr-bgp-route-map.yang index 5f701d514c..233b55ff58 100644 --- a/yang/frr-bgp-route-map.yang +++ b/yang/frr-bgp-route-map.yang @@ -802,6 +802,17 @@ identity set-extcommunity-color {        }      } +    case community-limit { +      when "derived-from-or-self(../frr-route-map:condition, 'frr-bgp-route-map:match-community-limit')"; +      description +        "Match BGP updates when the list of communities count is less than the configured limit."; +      leaf community-limit { +        type uint16 { +          range "1..1024"; +        } +      } +    } +      case comm-list-name {        when "derived-from-or-self(../frr-route-map:condition, 'frr-bgp-route-map:match-community') or "          + "derived-from-or-self(../frr-route-map:condition, 'frr-bgp-route-map:match-large-community') or "  | 
