]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix resolving nexthop through itself
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 1 Nov 2017 13:39:16 +0000 (13:39 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Thu, 9 Nov 2017 18:15:02 +0000 (10:15 -0800)
commitfd7fd9e5c4d30afbeb212f76c6b76d0b472e65d0
tree62047611d15ffc368184217d3f5257b761fdfa38
parent0db8196a967778a8d4e1018329b635b5716d6a08
zebra: fix resolving nexthop through itself

Problems reported with zebra nht oscillating when a nexthop is resolved
using the same address to reach the  nexthop (for example, 10.0.0.8 is
resolved via 10.0.0.8/32.)  This fix removes this attempt to resolve
thru itself unless the route being resolved is also a host route.
This fix also walks up the tree looking for a less specific route to
reach the nexthop if needed.  Smoke testing completed successfully.

Ticket: CM-8192
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: CCR-6583
Testing done: Manual testing successful, bgp-min completed successfully
l3-smoke completed with two test changes required.
zebra/zebra_rib.c
zebra/zebra_rnh.c