]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Optionally remove AS number when using `no set as-path exclude`
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 15 Nov 2018 19:57:34 +0000 (21:57 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 15 Nov 2018 19:57:34 +0000 (21:57 +0200)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_routemap.c

index f7c4175383338ab85dfb93794085fc91162ece70..fc27c546b464be1206d0405e27737013c131a10d 100644 (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);