The original goal of the zebra change was to force all:
NEXTHOP_TYPE_IPV4 -> NEXTHOP_TYPE_IPV4_IFINDEX
NEXTHOP_TYPE_IPV6 -> NEXTHOP_TYPE_IPV6_IFINDEX
This causes issues in routes being installed into the kernel
backing this out until I can get time to fully understand
what is going wrong.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
newhop = match->nexthop;
if (newhop)
{
- if (nexthop->type == NEXTHOP_TYPE_IPV4)
- {
- nexthop->ifindex = newhop->ifindex;
- nexthop->type = NEXTHOP_TYPE_IPV4;
- }
- if (nexthop->type == NEXTHOP_TYPE_IPV6)
- {
- nexthop->ifindex = newhop->ifindex;
- nexthop->type = NEXTHOP_TYPE_IPV6_IFINDEX;
- }
+ if (nexthop->type == NEXTHOP_TYPE_IPV4 ||
+ nexthop->type == NEXTHOP_TYPE_IPV6)
+ nexthop->ifindex = newhop->ifindex;
}
return 1;
}