pim6d: Add 'debug mld events'

Implementing debug mld events command for debugging MLD system events.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
This commit is contained in:
Sai Gomathi N 2022-09-25 23:07:42 -07:00
parent de00db38aa
commit b92f5c2ecc

View File

@ -1581,6 +1581,22 @@ DEFPY (debug_mld,
return CMD_SUCCESS;
}
DEFPY (debug_mld_events,
debug_mld_events_cmd,
"[no] debug mld events",
NO_STR
DEBUG_STR
DEBUG_MLD_STR
DEBUG_MLD_EVENTS_STR)
{
if (!no)
PIM_DO_DEBUG_GM_EVENTS;
else
PIM_DONT_DEBUG_GM_EVENTS;
return CMD_SUCCESS;
}
void pim_cmd_init(void)
{
if_cmd_init(pim_interface_config_write);
@ -1714,6 +1730,7 @@ void pim_cmd_init(void)
install_element(ENABLE_NODE, &debug_mroute6_cmd);
install_element(ENABLE_NODE, &debug_mroute6_detail_cmd);
install_element(ENABLE_NODE, &debug_mld_cmd);
install_element(ENABLE_NODE, &debug_mld_events_cmd);
install_element(CONFIG_NODE, &debug_pimv6_cmd);
install_element(CONFIG_NODE, &debug_pimv6_nht_cmd);
@ -1728,4 +1745,5 @@ void pim_cmd_init(void)
install_element(CONFIG_NODE, &debug_mroute6_cmd);
install_element(CONFIG_NODE, &debug_mroute6_detail_cmd);
install_element(CONFIG_NODE, &debug_mld_cmd);
install_element(CONFIG_NODE, &debug_mld_events_cmd);
}