]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_socket.c
zebra: Do not complain if deletion fails
authorDonald Sharp <sharpd@nvidia.com>
Sat, 19 Mar 2022 11:44:54 +0000 (07:44 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 19 Mar 2022 11:44:54 +0000 (07:44 -0400)
commitf2f2a16af48137d5f29cc85f08593542002e5bd0
treea5d1d4e8580d8a51d6a9ae14c1f511b2f5386502
parentf76ce0e0e08c8eef7a1ed12588a5908bbd65ab03
zebra: Do not complain if deletion fails

When issuing a RTM_DELETE operation and the kernel tells
us that the route is already deleted, let's not complain
about the situation:

2022/03/19 02:40:34 ZEBRA: [EC 100663303] kernel_rtm: 2a10:cc42:1d51::/48: rtm_write() unexpectedly returned -4 for command RTM_DELETE

I can recreate this issue on freebsd by doing this:
a) create a route using sharpd
b) shutdown the nexthop's interface
c) remove the route using sharpd

This would also be true of pretty much any routing protocol's behavior.
Let's just not complain about the situation if a RTM_DELETE
operation is issued and FRR is told that the route does not
exist to delete.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/rt_socket.c