]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Add 'debug pim trace detail' command
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 5 Jun 2017 17:15:47 +0000 (13:15 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 24 Jul 2017 17:51:38 +0000 (13:51 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_cmd.c
pimd/pimd.h

index dd890c39ed6fd509d3bdddd57e9b661cff262fdb..eb075ab0bd3be06c02dc23a6e0c00611bbd76451 100644 (file)
@@ -6503,6 +6503,17 @@ DEFUN (debug_pim_trace,
        return CMD_SUCCESS;
 }
 
+DEFUN (debug_pim_trace_detail,
+       debug_pim_trace_detail_cmd,
+       "debug pim trace detail",
+       DEBUG_STR
+       DEBUG_PIM_STR
+       DEBUG_PIM_TRACE_STR)
+{
+       PIM_DO_DEBUG_PIM_TRACE_DETAIL;
+       return CMD_SUCCESS;
+}
+
 DEFUN (no_debug_pim_trace,
        no_debug_pim_trace_cmd,
        "no debug pim trace",
@@ -6515,6 +6526,18 @@ DEFUN (no_debug_pim_trace,
        return CMD_SUCCESS;
 }
 
+DEFUN (no_debug_pim_trace_detail,
+       no_debug_pim_trace_detail_cmd,
+       "no debug pim trace",
+       NO_STR
+       DEBUG_STR
+       DEBUG_PIM_STR
+       DEBUG_PIM_TRACE_STR)
+{
+       PIM_DONT_DEBUG_PIM_TRACE_DETAIL;
+       return CMD_SUCCESS;
+}
+
 DEFUN (debug_ssmpingd,
        debug_ssmpingd_cmd,
        "debug ssmpingd",
@@ -7817,6 +7840,8 @@ void pim_cmd_init(void)
        install_element(ENABLE_NODE, &no_debug_pim_packetdump_recv_cmd);
        install_element(ENABLE_NODE, &debug_pim_trace_cmd);
        install_element(ENABLE_NODE, &no_debug_pim_trace_cmd);
+       install_element(ENABLE_NODE, &debug_pim_trace_detail_cmd);
+       install_element(ENABLE_NODE, &no_debug_pim_trace_detail_cmd);
        install_element(ENABLE_NODE, &debug_ssmpingd_cmd);
        install_element(ENABLE_NODE, &no_debug_ssmpingd_cmd);
        install_element(ENABLE_NODE, &debug_pim_zebra_cmd);
@@ -7853,6 +7878,8 @@ void pim_cmd_init(void)
        install_element(CONFIG_NODE, &no_debug_pim_packets_cmd);
        install_element(CONFIG_NODE, &debug_pim_trace_cmd);
        install_element(CONFIG_NODE, &no_debug_pim_trace_cmd);
+       install_element(CONFIG_NODE, &debug_pim_trace_detail_cmd);
+       install_element(CONFIG_NODE, &no_debug_pim_trace_detail_cmd);
        install_element(CONFIG_NODE, &debug_ssmpingd_cmd);
        install_element(CONFIG_NODE, &no_debug_ssmpingd_cmd);
        install_element(CONFIG_NODE, &debug_pim_zebra_cmd);
index 05689d30c85915f07380129c69b804353810e19a..ade6e0a0fc6ac221fd93fd50e2b5b0128659c025 100644 (file)
@@ -191,6 +191,7 @@ extern int32_t qpim_register_probe_time;
 #define PIM_DO_DEBUG_PIM_PACKETDUMP_SEND (qpim_debugs |= PIM_MASK_PIM_PACKETDUMP_SEND)
 #define PIM_DO_DEBUG_PIM_PACKETDUMP_RECV (qpim_debugs |= PIM_MASK_PIM_PACKETDUMP_RECV)
 #define PIM_DO_DEBUG_PIM_TRACE           (qpim_debugs |= PIM_MASK_PIM_TRACE)
+#define PIM_DO_DEBUG_PIM_TRACE_DETAIL    (qpim_debugs |= PIM_MASK_PIM_TRACE_DETAIL)
 #define PIM_DO_DEBUG_IGMP_EVENTS         (qpim_debugs |= PIM_MASK_IGMP_EVENTS)
 #define PIM_DO_DEBUG_IGMP_PACKETS        (qpim_debugs |= PIM_MASK_IGMP_PACKETS)
 #define PIM_DO_DEBUG_IGMP_TRACE          (qpim_debugs |= PIM_MASK_IGMP_TRACE)
@@ -212,6 +213,7 @@ extern int32_t qpim_register_probe_time;
 #define PIM_DONT_DEBUG_PIM_PACKETDUMP_SEND (qpim_debugs &= ~PIM_MASK_PIM_PACKETDUMP_SEND)
 #define PIM_DONT_DEBUG_PIM_PACKETDUMP_RECV (qpim_debugs &= ~PIM_MASK_PIM_PACKETDUMP_RECV)
 #define PIM_DONT_DEBUG_PIM_TRACE           (qpim_debugs &= ~PIM_MASK_PIM_TRACE)
+#define PIM_DONT_DEBUG_PIM_TRACE_DETAIL    (qpim_debugs &= ~PIM_MASK_PIM_TRACE_DETAIL)
 #define PIM_DONT_DEBUG_IGMP_EVENTS         (qpim_debugs &= ~PIM_MASK_IGMP_EVENTS)
 #define PIM_DONT_DEBUG_IGMP_PACKETS        (qpim_debugs &= ~PIM_MASK_IGMP_PACKETS)
 #define PIM_DONT_DEBUG_IGMP_TRACE          (qpim_debugs &= ~PIM_MASK_IGMP_TRACE)