From e1c3bf2477146386f71cb15503527d0fb7da7ce0 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 26 Sep 2017 16:29:31 -0400 Subject: [PATCH] watchfrr: Add a empty 'show debug..' command Allow watchfrr to silently ignore a 'show debug..' command for the moment. Signed-off-by: Donald Sharp --- watchfrr/watchfrr_vty.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); }