]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.c
zebra: Trust onlink flag for nexthop active resolution
authorvivek <vivek@cumulusnetworks.com>
Fri, 15 May 2020 23:22:01 +0000 (16:22 -0700)
committervivek <vivek@cumulusnetworks.com>
Fri, 15 May 2020 23:22:01 +0000 (16:22 -0700)
commit12b4d77babf1cc5a67fe44fa83af28d1d9fc8a51
tree3bd71ad2a422e2c1f9ea542258dbde4d14268b22
parent36caef199ae3af4efddda7b5d2a6d9f43b8f58c4
zebra: Trust onlink flag for nexthop active resolution

When checking if a nexthop is active, if it has been marked as onlink,
just check on the presence and status of the nexthop's interface. When
handling client request to create a route, if the client says that the
nexthop is onlink, trust it; when internally (in zebra) determining
that the nexthop is onlink, ensure it is only done in the case of an
interface with a /32 IP address which is the case for OSPF unnumbered.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zapi_msg.c
zebra/zebra_nhg.c