From 9e2912897d57056d4b6ec8899514e8826e1ee790 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sun, 24 Jan 2021 10:48:41 +0200 Subject: [PATCH] bgpd: Log prefix when community filter fails This is needed when NO_ADVERTISE or NO_EXPORT is handled for outgoing updates. Signed-off-by: Donatas Abraitis --- bgpd/bgp_route.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 6735c1a952..2a3fdc65c9 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1836,7 +1836,8 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi, /* If community is not disabled check the no-export and local. */ if (!transparent && bgp_community_filter(peer, piattr)) { if (bgp_debug_update(NULL, p, subgrp->update_group, 0)) - zlog_debug("%s: community filter check fail", __func__); + zlog_debug("%s: community filter check fail for %pFX", + __func__, p); return false; } -- 2.39.5