summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-10-17 20:10:12 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-21 20:26:11 -0500
commiteb7a976a9d89f49ce455b1394fa64d08fbc2af39 (patch)
tree6127a826b95877194dfbfba8423fba3321bcafab /pimd/pim_cmd.c
parentb1d15e151a3a640d6b0bb4c6f47eeb85f12f946b (diff)
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c9
1 files changed, 9 insertions, 0 deletions
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);