diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-06 16:17:16 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-06 16:21:22 +0200 |
commit | 8f3eeb8b8258afdfc177c8a58f0a1790179a5c60 (patch) | |
tree | 7e70fe66db11edebfad30ac51b6a24fa21aa14d6 /bgpd/bgp_routemap.c | |
parent | Merge pull request #14261 from Keelan10/ospfd-memleak (diff) | |
download | frr-8f3eeb8b8258afdfc177c8a58f0a1790179a5c60.tar.xz frr-8f3eeb8b8258afdfc177c8a58f0a1790179a5c60.zip |
bgpd: Fix `no set as-path prepend` command for BGP
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_routemap.c')
-rw-r--r-- | bgpd/bgp_routemap.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index af9490f0b..9e851c5bc 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -6207,27 +6207,12 @@ DEFPY_YANG( DEFUN_YANG (no_set_aspath_prepend, no_set_aspath_prepend_cmd, - "no set as-path prepend [ASNUM]", - NO_STR - SET_STR - "Transform BGP AS_PATH attribute\n" - "Prepend to the as-path\n" - AS_STR) -{ - const char *xpath = - "./set-action[action='frr-bgp-route-map:as-path-prepend']"; - - nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL); - return nb_cli_apply_changes(vty, NULL); -} - -DEFUN_YANG (no_set_aspath_prepend_lastas, - no_set_aspath_prepend_lastas_cmd, - "no set as-path prepend last-as [(1-10)]", + "no set as-path prepend [ASNUM] [last-as [(1-10)]]", NO_STR SET_STR "Transform BGP AS_PATH attribute\n" "Prepend to the as-path\n" + AS_STR "Use the peers AS-number\n" "Number of times to insert\n") { @@ -7915,7 +7900,6 @@ void bgp_route_map_init(void) install_element(RMAP_NODE, &set_aspath_replace_asn_cmd); install_element(RMAP_NODE, &set_aspath_replace_access_list_cmd); install_element(RMAP_NODE, &no_set_aspath_prepend_cmd); - install_element(RMAP_NODE, &no_set_aspath_prepend_lastas_cmd); install_element(RMAP_NODE, &no_set_aspath_exclude_cmd); install_element(RMAP_NODE, &no_set_aspath_exclude_all_cmd); install_element(RMAP_NODE, &no_set_aspath_exclude_access_list_cmd); |