Merge pull request #17894 from pguibert6WIND/bmp_send_peerx_twice

bgpd: fix do not send twice peer up/down messages
This commit is contained in:
Donatas Abraitis 2025-01-22 07:03:58 +02:00 committed by GitHub
commit 498bfbe60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}