]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Allow debugs entered in conf t mode to persist
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Oct 2016 00:10:12 +0000 (20:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:11 +0000 (20:26 -0500)
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 <sharpd@cumulusnetworks.com>
pimd/pim_cmd.c

index 5ea8887faf0c1114df8ebd44f6c4cf16c4814c49..e9b3a4e131f71a9f9f8e461ba99e8deeb7344b93 100644 (file)
@@ -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);