From: Donald Sharp Date: Sun, 16 Dec 2018 18:54:41 +0000 (-0500) Subject: bgpd: Allow 'no set community` X-Git-Tag: frr-7.1-dev~73^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2929de9ecda25d39249fc193127659be7195f430;p=mirror%2Ffrr.git 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 --- diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index a308e8fec6..851d70d4d9 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -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);