diff options
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); |
