diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-18 12:50:13 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-21 07:23:59 -0400 |
| commit | 87f6dc504d5d227ea66a4da37b350c2fc3df212b (patch) | |
| tree | 5a90641311ecdff313ed6de66b7b1efb7949df2f /ospf6d/ospf6d.c | |
| parent | 7292d8510f37ad85a295d8e361631a85e1e87234 (diff) | |
*: Add 'show debugging' command from vtysh
Allow vtysh to query every daemon about its
debugging status in one go.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6d.c')
| -rw-r--r-- | ospf6d/ospf6d.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index 48c34b7975..f6b9e0ec14 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -85,10 +85,24 @@ static int config_write_ospf6_debug(struct vty *vty) config_write_ospf6_debug_asbr(vty); config_write_ospf6_debug_abr(vty); config_write_ospf6_debug_flood(vty); - vty_out(vty, "!\n"); + return 0; } +DEFUN_NOSH (show_debugging_ospf6, + show_debugging_ospf6_cmd, + "show debugging [ospf6]", + SHOW_STR + DEBUG_STR + OSPF6_STR) +{ + vty_out(vty, "OSPF6 debugging status:"); + + config_write_ospf6_debug(vty); + + return CMD_SUCCESS; +} + #define AREA_LSDB_TITLE_FORMAT \ "\n Area Scoped Link State Database (Area %s)\n\n" #define IF_LSDB_TITLE_FORMAT \ @@ -1157,6 +1171,8 @@ void ospf6_init(void) install_element_ospf6_clear_interface(); + install_element(VIEW_NODE, &show_debugging_ospf6_cmd); + install_element(VIEW_NODE, &show_ipv6_ospf6_border_routers_cmd); install_element(VIEW_NODE, &show_ipv6_ospf6_linkstate_cmd); |
