bgpd: Allow deleting by no bgp large-community-list standard WORD

Without with fix we can't delete large-community-list using
no bgp large-community-list standard WORD, but no bgp large-community-list WORD

Let's keep this identical what we have with expanded lists as well.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
Donatas Abraitis 2019-10-24 15:40:23 +03:00
parent 2f8cc0e565
commit 4378f57c3e

View File

@ -14736,8 +14736,8 @@ DEFUN (lcommunity_list_name_expanded,
LARGE_COMMUNITY_LIST_EXPANDED, 1); LARGE_COMMUNITY_LIST_EXPANDED, 1);
} }
DEFUN (no_lcommunity_list_standard_all, DEFUN (no_lcommunity_list_all,
no_bgp_lcommunity_list_standard_all_cmd, no_bgp_lcommunity_list_all_cmd,
"no bgp large-community-list <(1-99)|(100-500)|WORD>", "no bgp large-community-list <(1-99)|(100-500)|WORD>",
NO_STR NO_STR
BGP_STR BGP_STR
@ -14750,6 +14750,19 @@ DEFUN (no_lcommunity_list_standard_all,
LARGE_COMMUNITY_LIST_STANDARD); LARGE_COMMUNITY_LIST_STANDARD);
} }
DEFUN (no_lcommunity_list_name_standard_all,
no_bgp_lcommunity_list_name_standard_all_cmd,
"no bgp large-community-list standard WORD",
NO_STR
BGP_STR
LCOMMUNITY_LIST_STR
"Specify standard large-community-list\n"
"Large Community list name\n")
{
return lcommunity_list_unset_vty(vty, argc, argv,
LARGE_COMMUNITY_LIST_STANDARD);
}
DEFUN (no_lcommunity_list_name_expanded_all, DEFUN (no_lcommunity_list_name_expanded_all,
no_bgp_lcommunity_list_name_expanded_all_cmd, no_bgp_lcommunity_list_name_expanded_all_cmd,
"no bgp large-community-list expanded WORD", "no bgp large-community-list expanded WORD",
@ -15345,7 +15358,9 @@ static void community_list_vty(void)
install_element(CONFIG_NODE, &bgp_lcommunity_list_expanded_cmd); install_element(CONFIG_NODE, &bgp_lcommunity_list_expanded_cmd);
install_element(CONFIG_NODE, &bgp_lcommunity_list_name_standard_cmd); install_element(CONFIG_NODE, &bgp_lcommunity_list_name_standard_cmd);
install_element(CONFIG_NODE, &bgp_lcommunity_list_name_expanded_cmd); install_element(CONFIG_NODE, &bgp_lcommunity_list_name_expanded_cmd);
install_element(CONFIG_NODE, &no_bgp_lcommunity_list_standard_all_cmd); install_element(CONFIG_NODE, &no_bgp_lcommunity_list_all_cmd);
install_element(CONFIG_NODE,
&no_bgp_lcommunity_list_name_standard_all_cmd);
install_element(CONFIG_NODE, install_element(CONFIG_NODE,
&no_bgp_lcommunity_list_name_expanded_all_cmd); &no_bgp_lcommunity_list_name_expanded_all_cmd);
install_element(CONFIG_NODE, &no_bgp_lcommunity_list_standard_cmd); install_element(CONFIG_NODE, &no_bgp_lcommunity_list_standard_cmd);