summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorSai Gomathi N <nsaigomathi@vmware.com>2022-09-26 07:29:37 +0200
committerSai Gomathi N <nsaigomathi@vmware.com>2022-09-26 07:29:37 +0200
commitde00db38aa109135578945e10e2f1888b1e9bc50 (patch)
tree3eba564d8bee949e8fbccce81bf6dea9c98fafe6 /pimd
parentMerge pull request #12001 from donaldsharp/use_integrated (diff)
downloadfrr-de00db38aa109135578945e10e2f1888b1e9bc50.tar.xz
frr-de00db38aa109135578945e10e2f1888b1e9bc50.zip
pim6d: Add 'debug mld'
Implementing debug mld command for MLD protocol activity. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim6_cmd.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c
index dc84de6bf..77b6a49d2 100644
--- a/pimd/pim6_cmd.c
+++ b/pimd/pim6_cmd.c
@@ -1561,6 +1561,26 @@ DEFUN_NOSH (show_debugging_pimv6,
return CMD_SUCCESS;
}
+DEFPY (debug_mld,
+ debug_mld_cmd,
+ "[no] debug mld",
+ NO_STR
+ DEBUG_STR
+ DEBUG_MLD_STR)
+{
+ if (!no) {
+ PIM_DO_DEBUG_GM_EVENTS;
+ PIM_DO_DEBUG_GM_PACKETS;
+ PIM_DO_DEBUG_GM_TRACE;
+ } else {
+ PIM_DONT_DEBUG_GM_EVENTS;
+ PIM_DONT_DEBUG_GM_PACKETS;
+ PIM_DONT_DEBUG_GM_TRACE;
+ }
+
+ return CMD_SUCCESS;
+}
+
void pim_cmd_init(void)
{
if_cmd_init(pim_interface_config_write);
@@ -1693,6 +1713,7 @@ void pim_cmd_init(void)
install_element(ENABLE_NODE, &debug_pimv6_zebra_cmd);
install_element(ENABLE_NODE, &debug_mroute6_cmd);
install_element(ENABLE_NODE, &debug_mroute6_detail_cmd);
+ install_element(ENABLE_NODE, &debug_mld_cmd);
install_element(CONFIG_NODE, &debug_pimv6_cmd);
install_element(CONFIG_NODE, &debug_pimv6_nht_cmd);
@@ -1706,4 +1727,5 @@ void pim_cmd_init(void)
install_element(CONFIG_NODE, &debug_pimv6_zebra_cmd);
install_element(CONFIG_NODE, &debug_mroute6_cmd);
install_element(CONFIG_NODE, &debug_mroute6_detail_cmd);
+ install_element(CONFIG_NODE, &debug_mld_cmd);
}