]> git.puffer.fish Git - matthieu/frr.git/commit
staticd: replace NB checks with assert
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 9 Aug 2021 09:48:38 +0000 (12:48 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 9 Aug 2021 09:48:38 +0000 (12:48 +0300)
commitaaddf974c5e450f223960c8323d500c638760030
treee7429919ca0ba754c64698da16dad0392196c50f
parent2570a9f16531ff1307cd6bcda2250ace49b1cf76
staticd: replace NB checks with assert

If there's no route table in a VRF, it's a hard bug - staticd will crash
on any subsequent action with this route anyway. So let's assert the
existence of a route table instead of returning an unrecoverable error.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
staticd/static_nb_config.c
staticd/static_routes.c