summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-07-02 01:16:48 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 11:13:40 -0400
commit7f997721693c63afcdf1d23f7449f8acbbe282d1 (patch)
tree80efe9683ebb90d36f15b052022ee2ae40e91bec /zebra/zebra_rib.c
parent139ddad8f12cf6dbf2993af196cc33476c2b79cf (diff)
zebra: Use nexthop/interface vrf, not the routes
When hashing/creating the NHE, use the nexthops vrf as its source of data. This is gotten directly from an interface and should not come from a route. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 0258c24090..6be91da54a 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -2739,7 +2739,7 @@ int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p,
return -1;
}
} else {
- nhe = zebra_nhg_rib_find(0, re->ng, re->vrf_id, afi);
+ nhe = zebra_nhg_rib_find(0, re->ng, afi);
/*
* The nexthops got copied over into an nhe,