From: Donatas Abraitis Date: Thu, 15 Nov 2018 19:57:34 +0000 (+0200) Subject: bgpd: Optionally remove AS number when using `no set as-path exclude` X-Git-Tag: frr-7.1-dev~181^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=499ceb3dce2987f7afaf9dbb8ff63cc4dcafe912;p=mirror%2Ffrr.git bgpd: Optionally remove AS number when using `no set as-path exclude` Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index f7c4175383..fc27c546b4 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -4076,6 +4076,11 @@ DEFUN (no_set_aspath_exclude, return ret; } +ALIAS(no_set_aspath_exclude, no_set_aspath_exclude_all_cmd, + "no set as-path exclude", + NO_STR SET_STR + "Transform BGP AS_PATH attribute\n" + "Exclude from the as-path\n") DEFUN (set_community, set_community_cmd, @@ -4965,6 +4970,7 @@ void bgp_route_map_init(void) install_element(RMAP_NODE, &set_aspath_exclude_cmd); install_element(RMAP_NODE, &no_set_aspath_prepend_cmd); install_element(RMAP_NODE, &no_set_aspath_exclude_cmd); + install_element(RMAP_NODE, &no_set_aspath_exclude_all_cmd); install_element(RMAP_NODE, &set_origin_cmd); install_element(RMAP_NODE, &no_set_origin_cmd); install_element(RMAP_NODE, &set_atomic_aggregate_cmd);