From: Donald Sharp Date: Tue, 18 Oct 2016 00:10:12 +0000 (-0400) Subject: pimd: Allow debugs entered in conf t mode to persist X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~177 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=eb7a976a9d89f49ce455b1394fa64d08fbc2af39;p=mirror%2Ffrr.git pimd: Allow debugs entered in conf t mode to persist When entering debug commands under 'conf t' mode allow the debugs to be saved for future fun and adventure. Ticket: CM-13213 Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 5ea8887faf..e9b3a4e131 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -67,6 +67,13 @@ static struct cmd_node interface_node = { 1 /* vtysh ? yes */ }; +static struct cmd_node debug_node = +{ + DEBUG_NODE, + "", + 1 +}; + static void pim_if_membership_clear(struct interface *ifp) { struct pim_interface *pim_ifp; @@ -5705,6 +5712,8 @@ void pim_cmd_init() install_node (&interface_node, pim_interface_config_write); /* INTERFACE_NODE */ if_cmd_init (); + install_node (&debug_node, pim_debug_config_write); + install_element (CONFIG_NODE, &ip_multicast_routing_cmd); install_element (CONFIG_NODE, &no_ip_multicast_routing_cmd); install_element (CONFIG_NODE, &ip_pim_rp_cmd);