summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_intra.c
diff options
context:
space:
mode:
authorKaushik <kaushik@niralnetworks.com>2020-09-01 01:31:49 -0700
committerKaushik <kaushik@niralnetworks.com>2020-09-01 03:02:46 -0700
commitc5d28568c6b71e16fefb3a409159e8fc9742e3f0 (patch)
tree9aa9c4b0944e5f6ed9740c184ca81141edf28f36 /ospf6d/ospf6_intra.c
parentddffdcf728280246e4ba8ba645d3c1b98763c4e5 (diff)
ospf6d : Preparing for ospf6d VRF support.
1. Removed the VRF_DEFAULT dependency from ospf6d. 2. The dependency on show command still exist will be fixed when the ospf6 master is available. Co-authored-by: Harios <hari@niralnetworks.com> Signed-off-by: Kaushik <kaushik@niralnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_intra.c')
-rw-r--r--ospf6d/ospf6_intra.c7
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);