summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuetuopay <tuetuopay@me.com>2019-03-06 19:19:42 +0100
committerTuetuopay <tuetuopay@me.com>2019-03-19 11:56:25 +0100
commitcffe977c32cd9f73f00f43d9f0627e9c6813e259 (patch)
treefd285858b0b1fedab4b611ff6e6ddd0ce3c5872d
parent43779a1127ca4a97b538edbf4d90f57665aa23e3 (diff)
bgpd/evpn: Send type-5 to EVPN BGP instance
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
-rw-r--r--bgpd/bgp_evpn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c
index 84f3649758..6c1da4f924 100644
--- a/bgpd/bgp_evpn.c
+++ b/bgpd/bgp_evpn.c
@@ -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;