summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2025-01-17 11:44:24 +0100
committerGitHub <noreply@github.com>2025-01-17 11:44:24 +0100
commit705e6f881b34079a0e87452961b02011a5f1e044 (patch)
tree217ae25a107b94139ec14ae1c639ba7c6487ff75 /yang
parentMerge pull request #17727 from idryzhov/netns-all-daemons (diff)
parenttopotest: add a test to control the community-list count (diff)
downloadfrr-705e6f881b34079a0e87452961b02011a5f1e044.tar.xz
frr-705e6f881b34079a0e87452961b02011a5f1e044.zip
Merge pull request #17836 from pguibert6WIND/limit_comm_list_count
limit community list count
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-bgp-route-map.yang17
1 files changed, 17 insertions, 0 deletions
diff --git a/yang/frr-bgp-route-map.yang b/yang/frr-bgp-route-map.yang
index 5f701d514..efb0b2fa0 100644
--- a/yang/frr-bgp-route-map.yang
+++ b/yang/frr-bgp-route-map.yang
@@ -148,6 +148,12 @@ module frr-bgp-route-map {
"Match BGP community list";
}
+ identity match-community-limit {
+ base frr-route-map:rmap-match-type;
+ description
+ "Match BGP community limit count";
+ }
+
identity match-large-community {
base frr-route-map:rmap-match-type;
description
@@ -802,6 +808,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 "