diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-12 09:20:30 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-12 09:20:30 -0500 |
| commit | 8f43b4d8868b340a7c61e55372b01f070abfb491 (patch) | |
| tree | 86ade99a03d400a521a4345be635fc311bd0c759 /zebra/zebra_static.c | |
| parent | 14fcc65cbbcd3d1684b879a10a0d8564c238e0e6 (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/zebra_static.c')
| -rw-r--r-- | zebra/zebra_static.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c index 751ea08a38..7fdc4908b4 100644 --- a/zebra/zebra_static.c +++ b/zebra/zebra_static.c @@ -155,6 +155,7 @@ void static_install_route(afi_t afi, safi_t safi, struct prefix *p, re->metric = 0; re->mtu = 0; re->vrf_id = si->vrf_id; + re->nh_vrf_id = si->vrf_id; re->table = si->vrf_id ? (zebra_vrf_lookup_by_id(si->vrf_id))->table_id |
