mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Allowing to restart a route refresh.
Repeated pipe refeed should not end route refresh as the prune routine may start pruning otherwise valid routes. The same applies for BGP repeated route refresh.
This commit is contained in:
@@ -805,11 +805,9 @@ bgp_handle_graceful_restart(struct bgp_proto *p)
|
||||
{
|
||||
case BGP_GRS_NONE:
|
||||
c->gr_active = BGP_GRS_ACTIVE;
|
||||
rt_refresh_begin(&c->c.in_req);
|
||||
break;
|
||||
/* fall through */
|
||||
|
||||
case BGP_GRS_ACTIVE:
|
||||
rt_refresh_end(&c->c.in_req);
|
||||
rt_refresh_begin(&c->c.in_req);
|
||||
break;
|
||||
|
||||
@@ -988,9 +986,6 @@ bgp_refresh_begin(struct bgp_channel *c)
|
||||
if (c->load_state == BFS_LOADING)
|
||||
{ log(L_WARN "%s: BEGIN-OF-RR received before END-OF-RIB, ignoring", p->p.name); return; }
|
||||
|
||||
if (c->load_state == BFS_REFRESHING)
|
||||
rt_refresh_end(&c->c.in_req);
|
||||
|
||||
c->load_state = BFS_REFRESHING;
|
||||
rt_refresh_begin(&c->c.in_req);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user