]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Give time left in hello timer for `show ipv6 ospf6 int`
authorDonald Sharp <sharpd@nvidia.com>
Mon, 16 May 2022 15:06:29 +0000 (11:06 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 16 May 2022 15:06:29 +0000 (11:06 -0400)
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>
ospf6d/ospf6_interface.c

index 55f1a1c7b581d9683f22e4b665e899b6119171ad..e259befc67abbbed8aec955aac517818250fa1e3 100644 (file)
@@ -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));