From: Sai Gomathi N Date: Mon, 26 Sep 2022 06:46:37 +0000 (-0700) Subject: pim6d: Add 'debug mld trace detail' X-Git-Tag: frr-8.4-rc~40^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f1877005458ed7ee5847a375ed24fa67422b40c5;p=mirror%2Ffrr.git pim6d: Add 'debug mld trace detail' Implementing debug mld trace detail for MLD activity. Signed-off-by: Sai Gomathi N --- diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index 856963ebd1..49248798bf 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -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); }