summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6d.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6d.c')
-rw-r--r--ospf6d/ospf6d.c35
1 files changed, 16 insertions, 19 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index 6b47fca578..f6b9e0ec14 100644
--- a/ospf6d/ospf6d.c
+++ b/ospf6d/ospf6d.c
@@ -44,8 +44,6 @@
#include "ospf6d.h"
#include "ospf6_bfd.h"
-char ospf6_daemon_version[] = OSPF6_DAEMON_VERSION;
-
struct route_node *route_prev(struct route_node *node)
{
struct route_node *end;
@@ -70,21 +68,6 @@ struct route_node *route_prev(struct route_node *node)
return prev;
}
-
-/* show database functions */
-DEFUN (show_version_ospf6,
- show_version_ospf6_cmd,
- "show version ospf6",
- SHOW_STR
- "Display version\n"
- "Display ospf6d version\n"
- )
-{
- vty_out(vty, "Zebra OSPF6d Version: %s\n", ospf6_daemon_version);
-
- return CMD_SUCCESS;
-}
-
static struct cmd_node debug_node = {
DEBUG_NODE, "", 1 /* VTYSH */
};
@@ -102,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 \
@@ -1174,7 +1171,7 @@ void ospf6_init(void)
install_element_ospf6_clear_interface();
- install_element(VIEW_NODE, &show_version_ospf6_cmd);
+ install_element(VIEW_NODE, &show_debugging_ospf6_cmd);
install_element(VIEW_NODE, &show_ipv6_ospf6_border_routers_cmd);