diff options
author | David Lamparter <equinox@diac24.net> | 2017-08-21 14:30:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 14:30:41 +0200 |
commit | add57540ba96f25a4fe27e48ac8599bac67bce72 (patch) | |
tree | 10d291d270a31e1e439eef1d46c69ce0cdeacb4a /babeld | |
parent | Merge pull request #1008 from donaldsharp/check_for_daemon_existence (diff) | |
parent | *: Add 'show debugging' command from vtysh (diff) | |
download | frr-add57540ba96f25a4fe27e48ac8599bac67bce72.tar.xz frr-add57540ba96f25a4fe27e48ac8599bac67bce72.zip |
Merge pull request #1009 from donaldsharp/show_cmds
Show cmds
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/babel_zebra.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c index 11b9c5956..2ec5c3d7c 100644 --- a/babeld/babel_zebra.c +++ b/babeld/babel_zebra.c @@ -310,6 +310,20 @@ debug_babel_config_write (struct vty * vty) #endif /* NO_DEBUG */ } +DEFUN_NOSH (show_debugging_babel, + show_debugging_babel_cmd, + "show debugging [babel]", + SHOW_STR + DEBUG_STR + "Babel") +{ + vty_out(vty, "BABEL debugging status\n"); + + debug_babel_config_write(vty); + + return CMD_SUCCESS; +} + static void babel_zebra_connected (struct zclient *zclient) { @@ -339,6 +353,8 @@ void babelz_zebra_init(void) install_element(ENABLE_NODE, &no_debug_babel_cmd); install_element(CONFIG_NODE, &debug_babel_cmd); install_element(CONFIG_NODE, &no_debug_babel_cmd); + + install_element(VIEW_NODE, &show_debugging_babel_cmd); } static int |