]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: evpn nexthop can be changed by default
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 11 Oct 2019 12:11:13 +0000 (14:11 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 21 Sep 2020 07:17:10 +0000 (09:17 +0200)
There can be cases where evpn traffic is not meshed across various
endpoints, but sent to a central pe. For this situation, add the
configuration knobs to force nexthop attribute. Upon that change,
nexthop unchanged attribute is automatically disabled.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_vty.c

index 47c5237aa6a2fef3756aad0518efb0e9a9c16f4a..0821e93924f1b832619f94e8aefbe38354672150 100644 (file)
@@ -16692,6 +16692,10 @@ void bgp_vty_init(void)
                        &no_neighbor_route_reflector_client_cmd);
        install_element(BGP_EVPN_NODE, &neighbor_route_reflector_client_cmd);
        install_element(BGP_EVPN_NODE, &no_neighbor_route_reflector_client_cmd);
+       install_element(BGP_EVPN_NODE, &neighbor_nexthop_self_cmd);
+       install_element(BGP_EVPN_NODE, &no_neighbor_nexthop_self_cmd);
+       install_element(BGP_EVPN_NODE, &neighbor_nexthop_self_force_cmd);
+       install_element(BGP_EVPN_NODE, &no_neighbor_nexthop_self_force_cmd);
 
        /* "neighbor route-server" commands.*/
        install_element(BGP_NODE, &neighbor_route_server_client_hidden_cmd);