summaryrefslogtreecommitdiff
path: root/ospfd/ospf_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_dump.c')
-rw-r--r--ospfd/ospf_dump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c
index a712ecde95..f0740349a0 100644
--- a/ospfd/ospf_dump.c
+++ b/ospfd/ospf_dump.c
@@ -1640,9 +1640,13 @@ DEFUN_NOSH (show_debugging_ospf_instance,
return show_debugging_ospf_common(vty, ospf);
}
+static int config_write_debug(struct vty *vty);
/* Debug node. */
static struct cmd_node debug_node = {
- DEBUG_NODE, "", 1 /* VTYSH */
+ .name = "debug",
+ .node = DEBUG_NODE,
+ .prompt = "",
+ .config_write = config_write_debug,
};
static int config_write_debug(struct vty *vty)
@@ -1783,7 +1787,7 @@ static int config_write_debug(struct vty *vty)
/* Initialize debug commands. */
void ospf_debug_init(void)
{
- install_node(&debug_node, config_write_debug);
+ install_node(&debug_node);
install_element(ENABLE_NODE, &show_debugging_ospf_cmd);
install_element(ENABLE_NODE, &debug_ospf_ism_cmd);