summaryrefslogtreecommitdiff
path: root/bgpd/rfapi/vnc_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/rfapi/vnc_debug.c')
-rw-r--r--bgpd/rfapi/vnc_debug.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/bgpd/rfapi/vnc_debug.c b/bgpd/rfapi/vnc_debug.c
index 2c5e188328..5c627efbee 100644
--- a/bgpd/rfapi/vnc_debug.c
+++ b/bgpd/rfapi/vnc_debug.c
@@ -173,11 +173,17 @@ static int bgp_vnc_config_write_debug(struct vty *vty)
return write;
}
-static struct cmd_node debug_node = {DEBUG_VNC_NODE, "", 1};
+static int bgp_vnc_config_write_debug(struct vty *vty);
+static struct cmd_node debug_node = {
+ .name = "vnc debug",
+ .node = DEBUG_VNC_NODE,
+ .prompt = "",
+ .config_write = bgp_vnc_config_write_debug,
+};
void vnc_debug_init(void)
{
- install_node(&debug_node, bgp_vnc_config_write_debug);
+ install_node(&debug_node);
install_element(ENABLE_NODE, &show_debugging_bgp_vnc_cmd);
install_element(ENABLE_NODE, &debug_bgp_vnc_cmd);