]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Add more details to ebgp requires policy warning 17427/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 15 Nov 2024 06:09:08 +0000 (08:09 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 15 Nov 2024 06:09:08 +0000 (08:09 +0200)
This will tell explicitly which peer does not have a filter applied.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_route.c

index 988be7f4de4c2c4d7b6d155f74d07396d5658372..b45ee60405ec27409449e4ad9363906f94e6cc7f 100644 (file)
@@ -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;