bgpd: Show which route-map is used when the prefix is filtered by route-map

It might be an unsuppress-map or outbound route-map, let's show which one is used.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2024-12-04 14:23:54 +02:00
parent 9797f20a1e
commit c61f34529b

View File

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