summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-01-12 09:20:30 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-01-12 09:20:30 -0500
commit8f43b4d8868b340a7c61e55372b01f070abfb491 (patch)
tree86ade99a03d400a521a4345be635fc311bd0c759 /zebra/rib.h
parent14fcc65cbbcd3d1684b879a10a0d8564c238e0e6 (diff)
zebra: Add nh_vrf_id to 'struct route_entry`
With VRF route-leaking we need to know what vrf the nexthops are in compared to this vrf. This code adds the nh_vrf_id to the route entry and sets it up correctly for the non-route-leaking case. The assumption here is that future commits will make the nh_vrf_id *different* than the vrf_id. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index c7e83480ca..c92f540771 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -59,6 +59,7 @@ struct route_entry {
/* VRF identifier. */
vrf_id_t vrf_id;
+ vrf_id_t nh_vrf_id;
/* Which routing table */
uint32_t table;