Merge pull request #3103 from dslicenc/bgp-evpn-aggregate

bgpd: enable aggregation in evpn
This commit is contained in:
David Lamparter 2018-10-01 12:44:09 +02:00 committed by GitHub
commit 01014e199b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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