From eb7a976a9d89f49ce455b1394fa64d08fbc2af39 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 17 Oct 2016 20:10:12 -0400 Subject: [PATCH] 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 --- pimd/pim_cmd.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.39.5