bgpd: Allow 'no set community`

Allow user to enter `no set community` to remove the community
set for the route-map.

Fixes: #3491
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-12-16 13:54:41 -05:00
parent f944fe9b00
commit 2929de9ecd

View File

@ -4200,6 +4200,13 @@ DEFUN (no_set_community,
"community", NULL);
}
ALIAS (no_set_community,
no_set_community_short_cmd,
"no set community",
NO_STR
SET_STR
"BGP community attribute\n")
DEFUN (set_community_delete,
set_community_delete_cmd,
@ -4976,6 +4983,7 @@ void bgp_route_map_init(void)
install_element(RMAP_NODE, &set_community_cmd);
install_element(RMAP_NODE, &set_community_none_cmd);
install_element(RMAP_NODE, &no_set_community_cmd);
install_element(RMAP_NODE, &no_set_community_short_cmd);
install_element(RMAP_NODE, &set_community_delete_cmd);
install_element(RMAP_NODE, &no_set_community_delete_cmd);
install_element(RMAP_NODE, &set_lcommunity_cmd);