mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 02:46:34 +00:00
Merge pull request #1235 from chiragshah6/ospf_vrf_dev
zebra: Nexthop APIs to use correct vrf_id
This commit is contained in:
commit
8a38c34b5a
@ -261,7 +261,7 @@ struct nexthop *route_entry_nexthop_ipv4_ifindex_add(struct route_entry *re,
|
||||
if (src)
|
||||
nexthop->src.ipv4 = *src;
|
||||
nexthop->ifindex = ifindex;
|
||||
ifp = if_lookup_by_index(nexthop->ifindex, VRF_DEFAULT);
|
||||
ifp = if_lookup_by_index(nexthop->ifindex, re->vrf_id);
|
||||
/*Pending: need to think if null ifp here is ok during bootup?
|
||||
There was a crash because ifp here was coming to be NULL */
|
||||
if (ifp)
|
||||
@ -417,7 +417,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
||||
* address in the routing table.
|
||||
*/
|
||||
if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ONLINK)) {
|
||||
ifp = if_lookup_by_index(nexthop->ifindex, VRF_DEFAULT);
|
||||
ifp = if_lookup_by_index(nexthop->ifindex, re->vrf_id);
|
||||
if (ifp && connected_is_unnumbered(ifp)) {
|
||||
if (if_is_operative(ifp))
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user