From: Donald Sharp Date: Sat, 30 Jan 2021 02:27:49 +0000 (-0500) Subject: bgpd: Remove hidden `neighbor X route-map Y ` command X-Git-Tag: base_8.0~450^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4c3e9f072a415aa02f367aaff1cc90dd6fda5d06;p=mirror%2Ffrr.git bgpd: Remove hidden `neighbor X route-map Y ` command This command was put in place to allow upgrades for the neighbor command from the BGP_NODE and have it put into the ipv4 uni node instead. Since this utterly kills the yang conversion. I believe we need to remove this. Since people upgrading will just loose the route-map applicatoin( if they are using such an old config ) and RFC 8212 will come into play. They'll figure it out pretty fast. Fixes: #7983 Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 514af5b823..a89c245e2a 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -8014,22 +8014,6 @@ DEFPY_YANG( return nb_cli_apply_changes(vty, base_xpath); } -ALIAS_HIDDEN(neighbor_route_map, neighbor_route_map_hidden_cmd, - "neighbor route-map WORD ", - NEIGHBOR_STR NEIGHBOR_ADDR_STR2 - "Apply route map to neighbor\n" - "Name of route map\n" - "Apply map to incoming routes\n" - "Apply map to outbound routes\n") - -ALIAS_HIDDEN(neighbor_route_map, no_neighbor_route_map_hidden_cmd, - "no neighbor route-map WORD ", - NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 - "Apply route map to neighbor\n" - "Name of route map\n" - "Apply map to incoming routes\n" - "Apply map to outbound routes\n") - /* Set unsuppress-map to the peer. */ static int peer_unsuppress_map_set_vty(struct vty *vty, const char *ip_str, afi_t afi, safi_t safi, @@ -18661,8 +18645,6 @@ void bgp_vty_init(void) install_element(BGP_FLOWSPECV6_NODE, &no_neighbor_filter_list_cmd); /* "neighbor route-map" commands. */ - install_element(BGP_NODE, &neighbor_route_map_hidden_cmd); - install_element(BGP_NODE, &no_neighbor_route_map_hidden_cmd); install_element(BGP_IPV4_NODE, &neighbor_route_map_cmd); install_element(BGP_IPV4M_NODE, &neighbor_route_map_cmd); install_element(BGP_IPV4L_NODE, &neighbor_route_map_cmd);