diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-11-30 17:56:42 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-12-06 23:05:45 +0100 |
commit | af568444cba565370a978bdc61a43c024df913fd (patch) | |
tree | 2738f123424c04ccfa229370e6390c734aa5d574 /watchfrr/watchfrr_vty.c | |
parent | watchfrr: immediately try connecting after start (diff) | |
download | frr-af568444cba565370a978bdc61a43c024df913fd.tar.xz frr-af568444cba565370a978bdc61a43c024df913fd.zip |
watchfrr: add status command
Just to see WTF is going on inside watchfrr...
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'watchfrr/watchfrr_vty.c')
-rw-r--r-- | watchfrr/watchfrr_vty.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/watchfrr/watchfrr_vty.c b/watchfrr/watchfrr_vty.c index 1bfc41f25..9b844d67f 100644 --- a/watchfrr/watchfrr_vty.c +++ b/watchfrr/watchfrr_vty.c @@ -124,6 +124,16 @@ DEFUN_NOSH (show_debugging_watchfrr, return CMD_SUCCESS; } +DEFUN (show_watchfrr, + show_watchfrr_cmd, + "show watchfrr", + SHOW_STR + WATCHFRR_STR) +{ + watchfrr_status(vty); + return CMD_SUCCESS; +} + void integrated_write_sigchld(int status) { uint8_t reply[4] = {0, 0, 0, CMD_WARNING}; @@ -159,4 +169,5 @@ void watchfrr_vty_init(void) install_element(ENABLE_NODE, &config_write_integrated_cmd); install_element(ENABLE_NODE, &show_debugging_watchfrr_cmd); install_element(CONFIG_NODE, &show_debugging_watchfrr_cmd); + install_element(VIEW_NODE, &show_watchfrr_cmd); } |