diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-16 19:54:41 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-19 13:09:44 +0100 |
commit | 2929de9ecda25d39249fc193127659be7195f430 (patch) | |
tree | db7e403b04a44805f1213d8dd6fb732566b38666 /bgpd/bgp_routemap.c | |
parent | Merge pull request #3448 from chiragshah6/evpn_dev1 (diff) | |
download | frr-2929de9ecda25d39249fc193127659be7195f430.tar.xz frr-2929de9ecda25d39249fc193127659be7195f430.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_routemap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index a308e8fec..851d70d4d 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); |