From: Sai Gomathi N Date: Tue, 18 Jan 2022 15:39:01 +0000 (-0800) Subject: pim6d: Adding ipv6 mld watermark-warn CLI X-Git-Tag: pim6-testing-20220430~95^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F10365%2Fhead;p=mirror%2Ffrr.git pim6d: Adding ipv6 mld watermark-warn CLI Adding the config mode command ipv6 mld watermark-warn <1-65535> This command can be use to warn the user when more than the desired limit of groups gets configured. Signed-off-by: Sai Gomathi N --- diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index 4356e0a8cc..5d7a63372f 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -625,6 +625,33 @@ DEFPY (interface_no_ipv6_mld_query_interval, "frr-routing:ipv6"); } +DEFPY (mld_group_watermark, + mld_group_watermark_cmd, + "ipv6 mld watermark-warn (1-65535)$limit", + IPV6_STR + MLD_STR + "Configure group limit for watermark warning\n" + "Group count to generate watermark warning\n") +{ + PIM_DECLVAR_CONTEXT(vrf, pim); + /* TBD Depends on MLD data structure changes */ + return CMD_SUCCESS; +} + +DEFPY (no_mld_group_watermark, + no_mld_group_watermark_cmd, + "no ipv6 mld watermark-warn [(1-65535)$limit]", + NO_STR + IPV6_STR + MLD_STR + "Unconfigure group limit for watermark warning\n" + IGNORED_IN_NO_STR) +{ + PIM_DECLVAR_CONTEXT(vrf, pim); + /* TBD Depends on MLD data structure changes */ + return CMD_SUCCESS; +} + DEFPY (interface_ipv6_mld_query_max_response_time, interface_ipv6_mld_query_max_response_time_cmd, "ipv6 mld query-max-response-time (1-65535)$qmrt", @@ -1570,6 +1597,10 @@ void pim_cmd_init(void) install_element(INTERFACE_NODE, &interface_ipv6_mld_query_interval_cmd); install_element(INTERFACE_NODE, &interface_no_ipv6_mld_query_interval_cmd); + install_element(CONFIG_NODE, &mld_group_watermark_cmd); + install_element(VRF_NODE, &mld_group_watermark_cmd); + install_element(CONFIG_NODE, &no_mld_group_watermark_cmd); + install_element(VRF_NODE, &no_mld_group_watermark_cmd); install_element(INTERFACE_NODE, &interface_ipv6_mld_query_max_response_time_cmd); install_element(INTERFACE_NODE,