summaryrefslogtreecommitdiff
path: root/watchfrr
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-04-06 09:18:47 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-04-18 09:32:29 -0400
commit603fef0e23086f2d8dd1bee741fcf1b4e85d7804 (patch)
tree93575b04663c4984b206e4b3e721b88d6fffce34 /watchfrr
parenteb3bd824516e52823ef15bf77002a02ccd263738 (diff)
watchfrr: Add some more information to `show watchfrr`
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>
Diffstat (limited to 'watchfrr')
-rw-r--r--watchfrr/watchfrr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c
index e5afa68986..51e4f802c9 100644
--- a/watchfrr/watchfrr.c
+++ b/watchfrr/watchfrr.c
@@ -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);