summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_routemap_nb.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-06-27 21:36:01 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-10-02 15:24:18 +0200
commitaa511000e0394528ddcab0f7728811d19d7f9c62 (patch)
treee392fe8de396d8a28648ad3d98b3a2f9104658eb /bgpd/bgp_routemap_nb.c
parentMerge pull request #14510 from opensourcerouting/fix/coccinelle_issues (diff)
downloadfrr-aa511000e0394528ddcab0f7728811d19d7f9c62.tar.xz
frr-aa511000e0394528ddcab0f7728811d19d7f9c62.zip
bgpd: add 'match community-list any' function
There is no match mechanism to match one community from the incoming community-list. Add the 'any' keyword to the 'match route-map' command of communit-list and large-community-list. > match community-list AAA any > match large-community-list AAA any Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_routemap_nb.c')
-rw-r--r--bgpd/bgp_routemap_nb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bgpd/bgp_routemap_nb.c b/bgpd/bgp_routemap_nb.c
index ae695a6f8..abebfe515 100644
--- a/bgpd/bgp_routemap_nb.c
+++ b/bgpd/bgp_routemap_nb.c
@@ -165,6 +165,13 @@ const struct frr_yang_module_info frr_bgp_route_map_info = {
}
},
{
+ .xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-bgp-route-map:comm-list/comm-list-name-any",
+ .cbs = {
+ .modify = lib_route_map_entry_match_condition_rmap_match_condition_comm_list_comm_list_name_any_modify,
+ .destroy = lib_route_map_entry_match_condition_rmap_match_condition_comm_list_comm_list_name_any_destroy,
+ }
+ },
+ {
.xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-bgp-route-map:ipv4-address",
.cbs = {
.modify = lib_route_map_entry_match_condition_rmap_match_condition_ipv4_address_modify,