Skip to content

Commit

Permalink
bgpd: [GR] fixed selectionDeferralTimer to display select_defer_time val
Browse files Browse the repository at this point in the history
Fixed selectionDeferralTimer JSON field which was displaying
stalepath timer value instead of select_defer_time.

Issue:3803619
Signed-off-by: Pooja Jagadeesh Doijode <[email protected]>
  • Loading branch information
Pdoijode authored and krishna-samy committed Dec 3, 2024
1 parent 596ad56 commit 0ae396a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -13229,9 +13229,9 @@ static void bgp_show_neighbor_graceful_restart_capability_per_afi_safi(
*/
if (CHECK_FLAG(peer->flags,
PEER_FLAG_GRACEFUL_RESTART)) {
json_object_int_add(json_timer,
"selectionDeferralTimer",
peer->bgp->stalepath_time);
json_object_int_add(
json_timer, "selectionDeferralTimer",
peer->bgp->select_defer_time);
}

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

0 comments on commit 0ae396a

Please sign in to comment.