]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Allow `no set extcommunity [rt|soo]`
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 19 Dec 2018 12:22:26 +0000 (07:22 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 19 Dec 2018 12:23:41 +0000 (07:23 -0500)
The ability to shorten the extended community commands for routemaps
upon removal should be allowed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_routemap.c

index 851d70d4d9b8a07de19eafa7616251737f296c2b..88582336a7a96c5a6fadef177ebdac85b134aa96 100644 (file)
@@ -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);