From 7f997721693c63afcdf1d23f7449f8acbbe282d1 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 2 Jul 2019 01:16:48 -0400 Subject: 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 --- zebra/zebra_rib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zebra/zebra_rib.c') 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, -- cgit v1.2.3