summaryrefslogtreecommitdiff
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r--bgpd/bgp_debug.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c
index 5104e23515..f503c1b18e 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -2282,11 +2282,17 @@ static int bgp_config_write_debug(struct vty *vty)
return write;
}
-static struct cmd_node debug_node = {DEBUG_NODE, "", 1};
+static int bgp_config_write_debug(struct vty *vty);
+static struct cmd_node debug_node = {
+ .name = "debug",
+ .node = DEBUG_NODE,
+ .prompt = "",
+ .config_write = bgp_config_write_debug,
+};
void bgp_debug_init(void)
{
- install_node(&debug_node, bgp_config_write_debug);
+ install_node(&debug_node);
install_element(ENABLE_NODE, &show_debugging_bgp_cmd);