]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd/evpn: Send type-5 to EVPN BGP instance
authorTuetuopay <tuetuopay@me.com>
Wed, 6 Mar 2019 18:19:42 +0000 (19:19 +0100)
committerTuetuopay <tuetuopay@me.com>
Tue, 19 Mar 2019 10:56:25 +0000 (11:56 +0100)
This sends local routes in overlay VRFs to the EPVN VRF when
redistribute configurations are present, rather than to the default VRF.

Signed-off-by: Tuetuopay <tuetuopay@me.com>
Sponsored-by: Scaleway
bgpd/bgp_evpn.c

index 84f3649758ddb2068350c4682868613e706eedad..6c1da4f924611f58a3a3ae58ad89bf6dc79aabf7 100644 (file)
@@ -1504,7 +1504,7 @@ static int update_evpn_type5_route(struct bgp *bgp_vrf, struct prefix_evpn *evp,
        struct bgp *bgp_def = NULL;
        int route_changed = 0;
 
-       bgp_def = bgp_get_default();
+       bgp_def = bgp_get_evpn();
        if (!bgp_def)
                return 0;
 
@@ -1926,7 +1926,7 @@ static int delete_evpn_type5_route(struct bgp *bgp_vrf, struct prefix_evpn *evp)
        struct bgp_path_info *pi = NULL;
        struct bgp *bgp_def = NULL; /* default bgp instance */
 
-       bgp_def = bgp_get_default();
+       bgp_def = bgp_get_evpn();
        if (!bgp_def)
                return 0;