]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Send up ifindex for redistribution when appropriate
authorDonald Sharp <sharpd@nvidia.com>
Thu, 4 Nov 2021 12:01:14 +0000 (08:01 -0400)
committermergify-bot <noreply@mergify.io>
Sun, 7 Nov 2021 13:02:02 +0000 (13:02 +0000)
commit8a6dd0cbfa9489842356cd588aec55de8d918d72
tree8a411a4952906e86850221cfcfd7912af9172e0a
parent78c6ebbd52c1a1490f698b0ffb614185b6db130d
zebra: Send up ifindex for redistribution when appropriate

Currently the NEXTHOP_TYPE_IPV4 and NEXTHOP_TYPE_IPV6 are
not sending up the resolved ifindex for the route.  This
is causing upper level protocols that have something like
this:

route-map FOO permit 10
  match interface swp13
!

router ospf
   redistribute static
!

ip route 4.5.6.7/32 10.10.10.10

where 10.10.10.10 resolves to interface swp13.  The route-map
will never match in this case.

Since FRR has the resolved nexthop interface, FRR might as
well send it up to be selected on by the upper level protocol
as needed.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 6f77db57794d40e34b09f0049c2323c0b7f462a3)
zebra/zapi_msg.c