]> git.puffer.fish Git - mirror/frr.git/commitdiff
watchfrr: Add some more information to `show watchfrr` 10993/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 6 Apr 2022 13:18:47 +0000 (09:18 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 18 Apr 2022 13:32:29 +0000 (09:32 -0400)
To allow people to know the state of watchfrr from vtysh,
let's add a bit more data to the output.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
watchfrr/watchfrr.c

index e5afa689861953a7626136f8348c1adff3e86c54..51e4f802c9a430cbc33d5d712286d3a7da87f15f 100644 (file)
@@ -1053,6 +1053,12 @@ void watchfrr_status(struct vty *vty)
        struct timeval delay;
 
        vty_out(vty, "watchfrr global phase: %s\n", phase_str[gs.phase]);
+       vty_out(vty, " Restart Command: %pSQq\n", gs.restart_command);
+       vty_out(vty, " Start Command: %pSQq\n", gs.start_command);
+       vty_out(vty, " Stop Command: %pSQq\n", gs.stop_command);
+       vty_out(vty, " Min Restart Interval: %ld\n", gs.min_restart_interval);
+       vty_out(vty, " Max Restart Interval: %ld\n", gs.max_restart_interval);
+       vty_out(vty, " Restart Timeout: %ld\n", gs.restart_timeout);
        if (gs.restart.pid)
                vty_out(vty, "    global restart running, pid %ld\n",
                        (long)gs.restart.pid);