mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-02 11:01:16 +00:00
Merge pull request #3103 from dslicenc/bgp-evpn-aggregate
bgpd: enable aggregation in evpn
This commit is contained in:
commit
01014e199b
@ -2428,6 +2428,8 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
|
||||
ri->uptime = bgp_clock();
|
||||
}
|
||||
|
||||
bgp_aggregate_increment(bgp_vrf, &rn->p, ri, afi, safi);
|
||||
|
||||
/* Perform route selection and update zebra, if required. */
|
||||
bgp_process(bgp_vrf, rn, afi, safi);
|
||||
|
||||
@ -2597,6 +2599,8 @@ static int uninstall_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
|
||||
if (!ri)
|
||||
return 0;
|
||||
|
||||
bgp_aggregate_decrement(bgp_vrf, &rn->p, ri, afi, safi);
|
||||
|
||||
/* Mark entry for deletion */
|
||||
bgp_info_delete(rn, ri);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user