diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-05-16 11:06:29 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-05-16 11:06:29 -0400 | 
| commit | 6290bec97e9cbb0d6764de706d99efdf11c1f901 (patch) | |
| tree | 2a415ab0c9c6ccd2f17e5349c7b78e3f97259194 /ospf6d/ospf6_interface.c | |
| parent | 950e7e6660fd394d70df1d11b9005443ca5083c5 (diff) | |
ospf6d: Give time left in hello timer for `show ipv6 ospf6 int`
When running `show ipv6 ospf6 interface` the hello timer period
is shown, but there is no indication on how much time is left
on the timer.  Add a clue:
sharpd@eva ~/frr5 (master)> vtysh -c "show ipv6 ospf6 int"
enp39s0 is up, type BROADCAST
  Interface ID: 2
  Internet Address:
    inet : 192.168.119.224/24
    inet6: 2603:6080:602:509e:9a14:998:b154:9e9/64
  Instance ID 0, Interface MTU 1500 (autodetect: 1500)
  MTU mismatch detection: enabled
  Area ID 0.0.0.0, Cost 1000
  State DR, Transmit Delay 1 sec, Priority 1
  Timer intervals configured:
   Hello 10(2.652), Dead 40, Retransmit 5
  DR: 192.168.122.1 BDR: 0.0.0.0
  Number of I/F scoped LSAs is 1
    0 Pending LSAs for LSUpdate in Time 00:00:00 [thread off]
    0 Pending LSAs for LSAck in Time 00:00:00 [thread off]
  Authentication Trailer is disabled
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 55f1a1c7b5..e259befc67 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1130,9 +1130,9 @@ static int ospf6_interface_show(struct vty *vty, struct interface *ifp,  			ospf6_interface_state_str[oi->state], oi->transdelay,  			oi->priority);  		vty_out(vty, "  Timer intervals configured:\n"); -		vty_out(vty, "   Hello %d, Dead %d, Retransmit %d\n", -			oi->hello_interval, oi->dead_interval, -			oi->rxmt_interval); +		vty_out(vty, "   Hello %d(%pTHd), Dead %d, Retransmit %d\n", +			oi->hello_interval, oi->thread_send_hello, +			oi->dead_interval, oi->rxmt_interval);  	}  	inet_ntop(AF_INET, &oi->drouter, drouter, sizeof(drouter));  | 
