summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2025-01-21 15:34:13 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2025-01-21 16:01:10 +0100
commitb002757c266f76b8989dfddee835591a22115561 (patch)
treeb40a5b5d0b5617bd231243c1d0467caedd7a2d74 /bgpd
parent4f65107d20901b136aa158b18e484a15df166cf0 (diff)
bgpd: fix do not send twice peer up/down messages
With recent BMP code, on a standard BMP config, the peer up and peer down messages related to a BGP peer are sent twice, whereas they should be send only once. Fix this by better controlling the condition. Fixes: f8a693311145 ("bgpd: bmp, handle imported bgp instances for peer up/down events") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c
index 21f9212556..e458e5e5ac 100644
--- a/bgpd/bgp_bmp.c
+++ b/bgpd/bgp_bmp.c
@@ -2451,7 +2451,7 @@ static void bmp_send_all_bgp(struct peer *peer, bool down)
if (!bmpbgp)
continue;
frr_each (bmp_targets, &bmpbgp->targets, bt) {
- if (bgp_vrf != peer->bgp && !bmp_imported_bgp_find(bt, peer->bgp->name))
+ if (bgp_vrf == peer->bgp || !bmp_imported_bgp_find(bt, peer->bgp->name))
continue;
bmp_send_bt(bt, s);
}