From 53c858e70e0bfd3d8418d1956ce76446bd985445 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 15 Nov 2024 08:09:08 +0200 Subject: [PATCH] bgpd: Add more details to ebgp requires policy warning This will tell explicitly which peer does not have a filter applied. Signed-off-by: Donatas Abraitis --- bgpd/bgp_route.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 988be7f4de4c..b45ee60405ec 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2594,8 +2594,8 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi, if (monotime_since(&bgp->ebgprequirespolicywarning, NULL) > FIFTEENMINUTE2USEC || bgp->ebgprequirespolicywarning.tv_sec == 0) { - zlog_warn( - "EBGP inbound/outbound policy not properly setup, please configure in order for your peering to work correctly"); + zlog_warn("%pBP [Update:SEND] %pFX EBGP outbound policy not properly setup, please configure in order for your peering to work correctly", + peer, p); monotime(&bgp->ebgprequirespolicywarning); } return false; @@ -4851,8 +4851,8 @@ void bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id, if (monotime_since(&bgp->ebgprequirespolicywarning, NULL) > FIFTEENMINUTE2USEC || bgp->ebgprequirespolicywarning.tv_sec == 0) { - zlog_warn( - "EBGP inbound/outbound policy not properly setup, please configure in order for your peering to work correctly"); + zlog_warn("%pBP rcvd UPDATE EBGP inbound policy not properly setup, please configure in order for your peering to work correctly", + peer); monotime(&bgp->ebgprequirespolicywarning); } goto filtered;