mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 20:15:08 +00:00
bgpd: enable aggregation in evpn
Problem encountered where using the aggregate-address command in an evpn environment did not work properly. Depending on the order of actions, the aggregate may not be created or removed when either the commands were issued or routes come and go. Ticket: CM-20585 Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
This commit is contained in:
parent
979ee88491
commit
b49cdf4c37
@ -2428,6 +2428,8 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
|
|||||||
ri->uptime = bgp_clock();
|
ri->uptime = bgp_clock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bgp_aggregate_increment(bgp_vrf, &rn->p, ri, afi, safi);
|
||||||
|
|
||||||
/* Perform route selection and update zebra, if required. */
|
/* Perform route selection and update zebra, if required. */
|
||||||
bgp_process(bgp_vrf, rn, afi, safi);
|
bgp_process(bgp_vrf, rn, afi, safi);
|
||||||
|
|
||||||
@ -2600,6 +2602,8 @@ static int uninstall_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
|
|||||||
/* Mark entry for deletion */
|
/* Mark entry for deletion */
|
||||||
bgp_info_delete(rn, ri);
|
bgp_info_delete(rn, ri);
|
||||||
|
|
||||||
|
bgp_aggregate_decrement(bgp_vrf, &rn->p, ri, afi, safi);
|
||||||
|
|
||||||
/* Perform route selection and update zebra, if required. */
|
/* Perform route selection and update zebra, if required. */
|
||||||
bgp_process(bgp_vrf, rn, afi, safi);
|
bgp_process(bgp_vrf, rn, afi, safi);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user