Skip to content

Commit 522c134

Browse files
Pdoijodeton31337
authored andcommitted
bgpd: [GR] fixed selectionDeferralTimer to display select_defer_time val
Fixed selectionDeferralTimer JSON field which was displaying stalepath timer value instead of select_defer_time. Issue:3803619 Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
1 parent 41bfc1e commit 522c134

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bgpd/bgp_vty.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13232,9 +13232,8 @@ static void bgp_show_neighbor_graceful_restart_capability_per_afi_safi(
1323213232
*/
1323313233
if (CHECK_FLAG(peer->flags,
1323413234
PEER_FLAG_GRACEFUL_RESTART)) {
13235-
json_object_int_add(json_timer,
13236-
"selectionDeferralTimer",
13237-
peer->bgp->stalepath_time);
13235+
json_object_int_add(json_timer, "selectionDeferralTimer",
13236+
peer->bgp->select_defer_time);
1323813237
}
1323913238

1324013239
if (peer->bgp->gr_info[afi][safi].t_select_deferral !=

0 commit comments

Comments
 (0)