It's very annoying when flapping between 0 (missing the output) and non-zero.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
if (use_json) {
json_object_int_add(json_neigh, "connectRetryTimer",
p->v_connect);
- if (peer_established(p) && p->rtt)
+ if (peer_established(p))
json_object_int_add(json_neigh, "estimatedRttInMsecs",
p->rtt);
if (p->t_start)
} else {
vty_out(vty, "BGP Connect Retry Timer in Seconds: %d\n",
p->v_connect);
- if (peer_established(p) && p->rtt)
+ if (peer_established(p))
vty_out(vty, "Estimated round trip time: %d ms\n",
p->rtt);
if (p->t_start)