]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Remove hidden `neighbor X route-map Y <in|out>` command 7984/head
authorDonald Sharp <sharpd@nvidia.com>
Sat, 30 Jan 2021 02:27:49 +0000 (21:27 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 30 Jan 2021 02:30:27 +0000 (21:30 -0500)
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 <sharpd@nvidia.com>
bgpd/bgp_vty.c

index 514af5b823c3810a4669e7d6755992e0a44c13f6..a89c245e2a93dfabf0d984cc9f606e45919c920c 100644 (file)
@@ -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 <A.B.C.D|X:X::X:X|WORD> route-map WORD <in|out>",
-            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 <A.B.C.D|X:X::X:X|WORD> route-map WORD <in|out>",
-            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);