summaryrefslogtreecommitdiff
path: root/lib/routemap_cli.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2025-02-14 09:24:20 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2025-02-27 22:25:52 +0100
commitc3084cacf4816cd0bba5ad8695bbf3365500563f (patch)
tree340705e796e9794324e8132024ee33006504b90c /lib/routemap_cli.c
parente27631e10ae0f45ccada53e556c6c1331dbadd19 (diff)
bgpd: add 'match extcommunity-count' command to restrict comm count
Add a mechanism in route-map to filter out route-map which have a list of extended communities greater than the given number. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/routemap_cli.c')
-rw-r--r--lib/routemap_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c
index eb01709707..a59d504287 100644
--- a/lib/routemap_cli.c
+++ b/lib/routemap_cli.c
@@ -715,6 +715,10 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode,
yang_dnode_get_string(
dnode,
"./rmap-match-condition/frr-bgp-route-map:rpki"));
+ } else if (IS_MATCH_EXTCOMMUNITY_LIMIT(condition)) {
+ vty_out(vty, " match extcommunity-limit %s\n",
+ yang_dnode_get_string(dnode,
+ "./rmap-match-condition/frr-bgp-route-map:extcommunity-limit"));
} else if (IS_MATCH_RPKI_EXTCOMMUNITY(condition)) {
vty_out(vty, " match rpki-extcommunity %s\n",
yang_dnode_get_string(