mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 18:12:00 +00:00
bgpd: Show the counters for RTT when shutdown on RTT feature is enabled
"shutdownRttInMsecs":5, "shutdownRttAfterCount":5, Estimated round trip time: 116 ms Shutdown when RTT > 5ms, count > 17 Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
5597214ccb
commit
f41255a0ef
@ -14567,9 +14567,18 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
|
|||||||
if (use_json) {
|
if (use_json) {
|
||||||
json_object_int_add(json_neigh, "connectRetryTimer",
|
json_object_int_add(json_neigh, "connectRetryTimer",
|
||||||
p->v_connect);
|
p->v_connect);
|
||||||
if (peer_established(p))
|
if (peer_established(p)) {
|
||||||
json_object_int_add(json_neigh, "estimatedRttInMsecs",
|
json_object_int_add(json_neigh, "estimatedRttInMsecs",
|
||||||
p->rtt);
|
p->rtt);
|
||||||
|
if (CHECK_FLAG(p->flags, PEER_FLAG_RTT_SHUTDOWN)) {
|
||||||
|
json_object_int_add(json_neigh,
|
||||||
|
"shutdownRttInMsecs",
|
||||||
|
p->rtt_expected);
|
||||||
|
json_object_int_add(json_neigh,
|
||||||
|
"shutdownRttAfterCount",
|
||||||
|
p->rtt_keepalive_rcv);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (p->t_start)
|
if (p->t_start)
|
||||||
json_object_int_add(
|
json_object_int_add(
|
||||||
json_neigh, "nextStartTimerDueInMsecs",
|
json_neigh, "nextStartTimerDueInMsecs",
|
||||||
@ -14604,9 +14613,14 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
|
|||||||
} else {
|
} else {
|
||||||
vty_out(vty, "BGP Connect Retry Timer in Seconds: %d\n",
|
vty_out(vty, "BGP Connect Retry Timer in Seconds: %d\n",
|
||||||
p->v_connect);
|
p->v_connect);
|
||||||
if (peer_established(p))
|
if (peer_established(p)) {
|
||||||
vty_out(vty, "Estimated round trip time: %d ms\n",
|
vty_out(vty, "Estimated round trip time: %d ms\n",
|
||||||
p->rtt);
|
p->rtt);
|
||||||
|
if (CHECK_FLAG(p->flags, PEER_FLAG_RTT_SHUTDOWN))
|
||||||
|
vty_out(vty,
|
||||||
|
"Shutdown when RTT > %dms, count > %u\n",
|
||||||
|
p->rtt_expected, p->rtt_keepalive_rcv);
|
||||||
|
}
|
||||||
if (p->t_start)
|
if (p->t_start)
|
||||||
vty_out(vty, "Next start timer due in %ld seconds\n",
|
vty_out(vty, "Next start timer due in %ld seconds\n",
|
||||||
thread_timer_remain_second(p->t_start));
|
thread_timer_remain_second(p->t_start));
|
||||||
|
Loading…
Reference in New Issue
Block a user