Merge pull request #17575 from opensourcerouting/fix/outgoing_rmap_supressed

bgpd: Show which route-map is used when the prefix is filtered by route-map
This commit is contained in:
Russ White 2024-12-10 11:32:30 -05:00 committed by GitHub
commit 06c72fae70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2587,12 +2587,11 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
if (ret == RMAP_DENYMATCH) { if (ret == RMAP_DENYMATCH) {
if (bgp_debug_update(NULL, p, subgrp->update_group, 0)) if (bgp_debug_update(NULL, p, subgrp->update_group, 0))
zlog_debug( zlog_debug("%pBP [Update:SEND] %pFX is filtered by route-map (%s) '%s'",
"%pBP [Update:SEND] %pFX is filtered by route-map '%s'", peer, p,
peer, p, bgp_path_suppressed(pi) ? "unsuppress-map" : "out",
bgp_path_suppressed(pi) bgp_path_suppressed(pi) ? UNSUPPRESS_MAP_NAME(filter)
? UNSUPPRESS_MAP_NAME(filter) : ROUTE_MAP_OUT_NAME(filter));
: ROUTE_MAP_OUT_NAME(filter));
bgp_attr_flush(rmap_path.attr); bgp_attr_flush(rmap_path.attr);
return false; return false;
} }