]> git.puffer.fish Git - mirror/frr.git/commitdiff
pim6d: Add 'debug mld trace detail'
authorSai Gomathi N <nsaigomathi@vmware.com>
Mon, 26 Sep 2022 06:46:37 +0000 (23:46 -0700)
committerSai Gomathi N <nsaigomathi@vmware.com>
Mon, 26 Sep 2022 06:46:37 +0000 (23:46 -0700)
Implementing debug mld trace detail for MLD activity.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
pimd/pim6_cmd.c

index 856963ebd16fca4559faaa1ee6b167da5285f49d..49248798bff8e65c6ceea2cbfea30a59447fd7ab 100644 (file)
@@ -1629,6 +1629,23 @@ DEFPY (debug_mld_trace,
        return CMD_SUCCESS;
 }
 
+DEFPY (debug_mld_trace_detail,
+       debug_mld_trace_detail_cmd,
+       "[no] debug mld trace detail",
+       NO_STR
+       DEBUG_STR
+       DEBUG_MLD_STR
+       DEBUG_MLD_TRACE_STR
+       "detailed\n")
+{
+       if (!no)
+               PIM_DO_DEBUG_GM_TRACE_DETAIL;
+       else
+               PIM_DONT_DEBUG_GM_TRACE_DETAIL;
+
+       return CMD_SUCCESS;
+}
+
 void pim_cmd_init(void)
 {
        if_cmd_init(pim_interface_config_write);
@@ -1765,6 +1782,7 @@ void pim_cmd_init(void)
        install_element(ENABLE_NODE, &debug_mld_events_cmd);
        install_element(ENABLE_NODE, &debug_mld_packets_cmd);
        install_element(ENABLE_NODE, &debug_mld_trace_cmd);
+       install_element(ENABLE_NODE, &debug_mld_trace_detail_cmd);
 
        install_element(CONFIG_NODE, &debug_pimv6_cmd);
        install_element(CONFIG_NODE, &debug_pimv6_nht_cmd);
@@ -1782,4 +1800,5 @@ void pim_cmd_init(void)
        install_element(CONFIG_NODE, &debug_mld_events_cmd);
        install_element(CONFIG_NODE, &debug_mld_packets_cmd);
        install_element(CONFIG_NODE, &debug_mld_trace_cmd);
+       install_element(CONFIG_NODE, &debug_mld_trace_detail_cmd);
 }