diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-09-02 08:25:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-02 08:25:09 -0400 |
| commit | b0d39af982854de9fcad7960804b8ca82a664158 (patch) | |
| tree | 068802be000e463be3550cbbba73c5525400adbc /ospf6d/ospf6_intra.c | |
| parent | 4223956546963c3f1a918efc6d3a5c0da875c7e7 (diff) | |
| parent | c5d28568c6b71e16fefb3a409159e8fc9742e3f0 (diff) | |
Merge pull request #7027 from Niral-Networks/niral_dev_vrf_ospf6
ospf6d : Preparing for ospf6d VRF support.
Diffstat (limited to 'ospf6d/ospf6_intra.c')
| -rw-r--r-- | ospf6d/ospf6_intra.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c index ef5d1d0583..6eda9f750c 100644 --- a/ospf6d/ospf6_intra.c +++ b/ospf6d/ospf6_intra.c @@ -1569,8 +1569,8 @@ void ospf6_intra_prefix_route_ecmp_path(struct ospf6_area *oa, if (intra_prefix_lsa->ref_adv_router == oa->ospf6->router_id) { ifp = if_lookup_prefix( - &old_route->prefix, - VRF_DEFAULT); + &old_route->prefix, + oa->ospf6->vrf_id); if (ifp) ospf6_route_add_nexthop( old_route, @@ -1714,7 +1714,8 @@ void ospf6_intra_prefix_lsa_add(struct ospf6_lsa *lsa) memcpy(&route->path.ls_prefix, &ls_prefix, sizeof(struct prefix)); if (direct_connect) { - ifp = if_lookup_prefix(&route->prefix, VRF_DEFAULT); + ifp = if_lookup_prefix(&route->prefix, + oa->ospf6->vrf_id); if (ifp) ospf6_route_add_nexthop(route, ifp->ifindex, NULL); |
