From: Donald Sharp Date: Tue, 26 Sep 2017 20:29:31 +0000 (-0400) Subject: watchfrr: Add a empty 'show debug..' command X-Git-Tag: frr-4.0-dev~271^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e1c3bf2477146386f71cb15503527d0fb7da7ce0;p=mirror%2Ffrr.git watchfrr: Add a empty 'show debug..' command Allow watchfrr to silently ignore a 'show debug..' command for the moment. Signed-off-by: Donald Sharp --- diff --git a/watchfrr/watchfrr_vty.c b/watchfrr/watchfrr_vty.c index 9cfdab44ab..fd9c017512 100644 --- a/watchfrr/watchfrr_vty.c +++ b/watchfrr/watchfrr_vty.c @@ -31,6 +31,16 @@ pid_t integrated_write_pid; static int integrated_result_fd; +DEFUN_NOSH(show_watchfrr_debugging, + show_watchfrr_debugging_cmd, + "show debugging [watchfrr]", + SHOW_STR + DEBUG_STR + "WatchFRR\n") +{ + return CMD_SUCCESS; +} + DEFUN(config_write_integrated, config_write_integrated_cmd, "write integrated", @@ -134,4 +144,5 @@ void watchfrr_vty_init(void) { integrated_write_pid = -1; install_element(ENABLE_NODE, &config_write_integrated_cmd); + install_element(ENABLE_NODE, &show_watchfrr_debugging_cmd); }