Merge pull request #3338 from ton31337/fix/optional_args_for_exclude

bgpd: Optionally remove AS number when using `no set as-path exclude`
This commit is contained in:
Quentin Young 2018-11-16 15:43:44 -05:00 committed by GitHub
commit 97bc06df85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);