if (old_select || new_select) {
bgp_bump_version(dest);
- if (!bgp->t_rmap_def_originate_eval) {
- bgp_lock(bgp);
+ if (!bgp->t_rmap_def_originate_eval)
event_add_timer(
bm->master,
update_group_refresh_default_originate_route_map,
bgp, RMAP_DEFAULT_ORIGINATE_EVAL_TIMER,
&bgp->t_rmap_def_originate_eval);
- }
}
if (old_select)
update_group_walk(bgp, update_group_default_originate_route_map_walkcb,
reason);
EVENT_OFF(bgp->t_rmap_def_originate_eval);
- bgp_unlock(bgp);
}
/*
struct listnode *next;
/* Stop timers. */
- if (bgp->t_rmap_def_originate_eval) {
+ if (bgp->t_rmap_def_originate_eval)
EVENT_OFF(bgp->t_rmap_def_originate_eval);
- bgp_unlock(bgp); /* TODO - This timer is started with a lock -
- why? */
- }
/* Bring down peers, so corresponding routes are purged. */
for (ALL_LIST_ELEMENTS(bgp->peer, node, next, peer)) {
vpn_leak_zebra_vrf_label_withdraw(bgp, AFI_IP6);
/* Stop timers. */
- if (bgp->t_rmap_def_originate_eval) {
+ if (bgp->t_rmap_def_originate_eval)
EVENT_OFF(bgp->t_rmap_def_originate_eval);
- bgp_unlock(bgp); /* TODO - This timer is started with a lock -
- why? */
- }
/* Inform peers we're going down. */
for (ALL_LIST_ELEMENTS(bgp->peer, node, next, peer))