fib: log an error when destroying non-empty tables 25/39525/6
authorBenoît Ganne <[email protected]>
Wed, 13 Sep 2023 15:21:04 +0000 (17:21 +0200)
committerNeale Ranns <[email protected]>
Fri, 12 Jul 2024 03:05:02 +0000 (03:05 +0000)
commitcaaa63322307b28bc8cf9796f642d9a068722ba5
treec2cf4ab158686e79f1b40a09b164ccab1e2b503b
parent63bdb319639e84a50fed0ae91f7508e95af1220e
fib: log an error when destroying non-empty tables

Destroying a non-empty fib table can lead to difficult to diagnose bugs,
like dandling fib entries preventing entries to be inserting to the
mtrie.
Always log an error to help diagnose those issues.

Type: improvement

Change-Id: I2c771a80595035b440931b74cca4429af22161a2
Signed-off-by: Benoît Ganne <[email protected]>
src/vnet/fib/fib_entry.c
src/vnet/fib/fib_table.h
src/vnet/fib/ip4_fib.c
src/vnet/fib/ip6_fib.c