* need to be imported again, so flag accordingly.
*/
force_evpn_import = true;
+ } else {
+ /* implicit withdraw, decrement aggregate and pcount
+ * here. only if update is accepted, they'll increment
+ * below.
+ */
+ bgp_aggregate_decrement(bgp, p, pi, afi, safi);
}
/* Received Logging. */
/* The attribute is changed. */
bgp_path_info_set_flag(dest, pi, BGP_PATH_ATTR_CHANGED);
- /* implicit withdraw, decrement aggregate and pcount here.
- * only if update is accepted, they'll increment below.
- */
- bgp_aggregate_decrement(bgp, p, pi, afi, safi);
-
/* Update bgp route dampening information. */
if (CHECK_FLAG(bgp->af_flags[afi][safi], BGP_CONFIG_DAMPENING)
&& peer->sort == BGP_PEER_EBGP) {