Skip to content

Commit 03de9ac

Browse files
committed
bgpd: [GR] Start select deferral timer if startup timer is running
Problem: if -K option is not specified then BGP was not starting the select deferral timer for any of the GR supported afi-safis though startup timer was running. Fix: Modified the check to skip starting select-deferral timer only if -K option is not specified in daemons file and t_startup timer is not running. Signed-off-by: Pooja Jagadeesh Doijode <[email protected]>
1 parent 2369323 commit 03de9ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bgpd/bgpd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9080,12 +9080,13 @@ static int peer_unshut_after_cfg(struct bgp *bgp)
90809080
bgp_in_graceful_restart(), global_gr_mode, gr_cfgd_at_nbr);
90819081

90829082
/*
9083-
* If BGP is not in GR
9083+
* If BGP is not in GR and startup timer is not running
90849084
* OR
90859085
* If this VRF doesn't have GR configured at global and neighbor level
90869086
* then return
90879087
*/
9088-
if (!bgp_in_graceful_restart() || (global_gr_mode != GLOBAL_GR && !gr_cfgd_at_nbr))
9088+
if ((!bgp_in_graceful_restart() && !bgp->t_startup) ||
9089+
(global_gr_mode != GLOBAL_GR && !gr_cfgd_at_nbr))
90899090
return 0;
90909091

90919092
/*

0 commit comments

Comments
 (0)