]> git.puffer.fish Git - matthieu/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>
Fri, 11 Sep 2020 16:25:12 +0000 (18:25 +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 b2a795b97de2c17fe70f07cf6ea86b97a5e6218e..d9c78b262b62e84319e20527b44f237fdd45a994 100644 (file)
@@ -16446,6 +16446,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);