summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-19 07:22:26 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-12-19 07:23:41 -0500
commit4db5ee8ea31a2a567dcf3988509146a8cc323912 (patch)
treee141cd7be1104345cc01efdc8dae6cdcbb207c15 /bgpd
parent2929de9ecda25d39249fc193127659be7195f430 (diff)
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_routemap.c16
1 files changed, 16 insertions, 0 deletions
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);