mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 12:01:43 +00:00
Merge pull request #11691 from mxyns/bmp-vpnv4monupd-fix
bgpd: fixed bmp vpnv4 monitoring sending withdraws instead of updates
This commit is contained in:
commit
ad9b47e65e
@ -1183,11 +1183,13 @@ static bool bmp_wrqueue(struct bmp *bmp, struct pullwr *pullwr)
|
|||||||
if (!peer_established(peer))
|
if (!peer_established(peer))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
bn = bgp_node_lookup(bmp->targets->bgp->rib[afi][safi], &bqe->p);
|
bool is_vpn = (bqe->afi == AFI_L2VPN && bqe->safi == SAFI_EVPN) ||
|
||||||
struct prefix_rd *prd = NULL;
|
(bqe->safi == SAFI_MPLS_VPN);
|
||||||
if ((bqe->afi == AFI_L2VPN && bqe->safi == SAFI_EVPN) ||
|
|
||||||
(bqe->safi == SAFI_MPLS_VPN))
|
struct prefix_rd *prd = is_vpn ? &bqe->rd : NULL;
|
||||||
prd = &bqe->rd;
|
bn = bgp_afi_node_lookup(bmp->targets->bgp->rib[afi][safi], afi, safi,
|
||||||
|
&bqe->p, prd);
|
||||||
|
|
||||||
|
|
||||||
if (bmp->targets->afimon[afi][safi] & BMP_MON_POSTPOLICY) {
|
if (bmp->targets->afimon[afi][safi] & BMP_MON_POSTPOLICY) {
|
||||||
struct bgp_path_info *bpi;
|
struct bgp_path_info *bpi;
|
||||||
|
Loading…
Reference in New Issue
Block a user