]> git.proxmox.com Git - mirror_frr.git/commit - pbrd/pbr_nht.c
pbrd: add support for interface nexthops
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 14 Feb 2019 22:00:15 +0000 (20:00 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 15 Feb 2019 00:57:39 +0000 (22:57 -0200)
commita106a4087b47e180e32c66e139449bcf2660578f
tree42b01877fb3d52999d9fa3049b71c40da10a50a4
parent268c24ee9ee2510d6b4922053285254644609a0f
pbrd: add support for interface nexthops

Now that nexthop groups can contain interface nexthops, make the
necessary adjustments in pbrd to handle them appropriately.

For normal IP nexthops, pbrd uses the NHT callbacks to validate
these nexthops (i.e. check if they are reachable). NHT can't be
used for interface nexthops though. To work around this issue,
use the interface event callbacks from the zclient API to validate
interface nexthops (an interface nexthop is valid only if the
corresponding interface is up and running).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
pbrd/pbr_nht.c
pbrd/pbr_nht.h
pbrd/pbr_zebra.c