summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2017-01-13 11:23:03 -0800
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-30 13:40:53 -0500
commit659b52a8456ea70ee4d7a21c9cb46c58d01ea296 (patch)
treeaa3d0604fda1d564aad3086a98565dbd7b186aba /lib/command.c
parent64a608dbae92eb9ec084b22004ced29efa48defd (diff)
zebra: send ipv4 singlepath delete messages to kernel without nexthop
Problem reported was stale routes left in the kernel in certain cases when overlapping static routes were used and links were bounced. The problem was determined to be an issue where the nexthop was changed due to recursion as the link is going down, and the next-hop at the time of deletion doesn't match what was previously installed by the kernel. This caused the kernel to reject the deletion and the route stuck around. It was pointed out that the kernel doesn't actually require a next-hop value on the netlink deletion call. In this fix, we are eliminating the nexthop for RTM_DELROUTE messages to the kernel in the ipv4 singlepath case. This approach could also be valid for other cases but the fix as is resolved the reported failure case. More testing should be performed before similar changes are made for other cases. Testing included manual testing for the failure condition as well as complete bgp-smoke and ospf-smoke tests with no new failures. Ticket: CM-13328 Signed-off-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: CCR-5562
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions