From: Donald Sharp Date: Wed, 19 Dec 2018 12:22:26 +0000 (-0500) Subject: bgpd: Allow `no set extcommunity [rt|soo]` X-Git-Tag: frr-7.1-dev~73^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4db5ee8ea31a2a567dcf3988509146a8cc323912;p=matthieu%2Ffrr.git bgpd: Allow `no set extcommunity [rt|soo]` The ability to shorten the extended community commands for routemaps upon removal should be allowed. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 851d70d4d9..88582336a7 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -4372,6 +4372,13 @@ DEFUN (no_set_ecommunity_rt, "extcommunity rt", NULL); } +ALIAS (no_set_ecommunity_rt, + no_set_ecommunity_rt_short_cmd, + "no set extcommunity rt", + NO_STR + SET_STR + "BGP extended community attribute\n" + "Route Target extended community\n") DEFUN (set_ecommunity_soo, set_ecommunity_soo_cmd, @@ -4406,6 +4413,13 @@ DEFUN (no_set_ecommunity_soo, "extcommunity soo", NULL); } +ALIAS (no_set_ecommunity_soo, + no_set_ecommunity_soo_short_cmd, + "no set extcommunity soo", + NO_STR + SET_STR + "GP extended community attribute\n" + "Site-of-Origin extended community\n") DEFUN (set_origin, set_origin_cmd, @@ -4994,8 +5008,10 @@ void bgp_route_map_init(void) install_element(RMAP_NODE, &no_set_lcommunity_delete_cmd); install_element(RMAP_NODE, &set_ecommunity_rt_cmd); install_element(RMAP_NODE, &no_set_ecommunity_rt_cmd); + install_element(RMAP_NODE, &no_set_ecommunity_rt_short_cmd); install_element(RMAP_NODE, &set_ecommunity_soo_cmd); install_element(RMAP_NODE, &no_set_ecommunity_soo_cmd); + install_element(RMAP_NODE, &no_set_ecommunity_soo_short_cmd); #ifdef KEEP_OLD_VPN_COMMANDS install_element(RMAP_NODE, &set_vpn_nexthop_cmd); install_element(RMAP_NODE, &no_set_vpn_nexthop_cmd);