summaryrefslogtreecommitdiffstats
path: root/pimd/pim6_cmd.c
diff options
context:
space:
mode:
authorSai Gomathi N <nsaigomathi@vmware.com>2022-09-26 08:33:59 +0200
committerSai Gomathi N <nsaigomathi@vmware.com>2022-09-26 08:33:59 +0200
commite0a7a5ebe3d355304abb79ddcc843c7aecb4a619 (patch)
treebbea6937d2a9630e59ee0f59f98906aa8dfffd73 /pimd/pim6_cmd.c
parentpim6d: Add 'debug mld packets' (diff)
downloadfrr-e0a7a5ebe3d355304abb79ddcc843c7aecb4a619.tar.xz
frr-e0a7a5ebe3d355304abb79ddcc843c7aecb4a619.zip
pim6d: Add 'debug mld trace'
Implementing mld trace for MLD protocol activity. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim6_cmd.c')
-rw-r--r--pimd/pim6_cmd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c
index 1df170df0..856963ebd 100644
--- a/pimd/pim6_cmd.c
+++ b/pimd/pim6_cmd.c
@@ -1613,6 +1613,22 @@ DEFPY (debug_mld_packets,
return CMD_SUCCESS;
}
+DEFPY (debug_mld_trace,
+ debug_mld_trace_cmd,
+ "[no] debug mld trace",
+ NO_STR
+ DEBUG_STR
+ DEBUG_MLD_STR
+ DEBUG_MLD_TRACE_STR)
+{
+ if (!no)
+ PIM_DO_DEBUG_GM_TRACE;
+ else
+ PIM_DONT_DEBUG_GM_TRACE;
+
+ return CMD_SUCCESS;
+}
+
void pim_cmd_init(void)
{
if_cmd_init(pim_interface_config_write);
@@ -1748,6 +1764,7 @@ void pim_cmd_init(void)
install_element(ENABLE_NODE, &debug_mld_cmd);
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(CONFIG_NODE, &debug_pimv6_cmd);
install_element(CONFIG_NODE, &debug_pimv6_nht_cmd);
@@ -1764,4 +1781,5 @@ void pim_cmd_init(void)
install_element(CONFIG_NODE, &debug_mld_cmd);
install_element(CONFIG_NODE, &debug_mld_events_cmd);
install_element(CONFIG_NODE, &debug_mld_packets_cmd);
+ install_element(CONFIG_NODE, &debug_mld_trace_cmd);
}