summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-09-07 09:14:45 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-09-13 10:30:45 +0200
commit00b365d67f4214cbb28d16ed5f66b1dffdd2295d (patch)
tree33a7482126159f421aff94f2dcc96d6499f7143f /bgpd
parentMerge pull request #14404 from donaldsharp/snmp_mess_ups (diff)
downloadfrr-00b365d67f4214cbb28d16ed5f66b1dffdd2295d.tar.xz
frr-00b365d67f4214cbb28d16ed5f66b1dffdd2295d.zip
bgpd: Show LLGR timers under `show bgp neighbor`
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_vty.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index f6db3fb36..d84300709 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -12622,6 +12622,8 @@ static void bgp_show_neighbor_graceful_restart_capability_per_afi_safi(
if (json) {
json_object_int_add(json_timer, "stalePathTimer",
peer->bgp->stalepath_time);
+ json_object_int_add(json_timer, "llgrStaleTime",
+ peer->llgr[afi][safi].stale_time);
if (peer->connection->t_gr_stale != NULL) {
json_object_int_add(json_timer,
@@ -12672,6 +12674,9 @@ static void bgp_show_neighbor_graceful_restart_capability_per_afi_safi(
" Configured Selection Deferral Time(sec): %u\n",
peer->bgp->select_defer_time);
+ vty_out(vty, " LLGR Stale Path Time(sec): %u\n",
+ peer->llgr[afi][safi].stale_time);
+
if (peer->bgp->gr_info[afi][safi].t_select_deferral !=
NULL)
vty_out(vty,
@@ -12703,6 +12708,8 @@ static void bgp_show_neighbor_graceful_restart_time(struct vty *vty,
json_object_int_add(json_timer, "configuredRestartTimer",
p->bgp->restart_time);
+ json_object_int_add(json_timer, "configuredLlgrStaleTime",
+ p->bgp->llgr_stale_time);
json_object_int_add(json_timer, "receivedRestartTimer",
p->v_gr_restart);
@@ -12721,6 +12728,8 @@ static void bgp_show_neighbor_graceful_restart_time(struct vty *vty,
vty_out(vty, " Received Restart Time(sec): %u\n",
p->v_gr_restart);
+ vty_out(vty, " Configured LLGR Stale Path Time(sec): %u\n",
+ p->bgp->llgr_stale_time);
if (p->connection->t_gr_restart != NULL)
vty_out(vty, " Restart Time Remaining(sec): %ld\n",
event_timer_remain_second(