From 43e52561b476e4810e0a1280769e800e2d619621 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Tue, 19 Jun 2018 18:29:05 +0000 Subject: zebra, lib: error references for zebra Signed-off-by: Quentin Young --- lib/lib_errors.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/lib_errors.c') diff --git a/lib/lib_errors.c b/lib/lib_errors.c index d45e21ddc8..1faee603c2 100644 --- a/lib/lib_errors.c +++ b/lib/lib_errors.c @@ -21,6 +21,7 @@ #include #include +/* clang-format off */ static struct ferr_ref ferr_lib_err[] = { { .code = LIB_ERR_PRIVILEGES, @@ -100,10 +101,17 @@ static struct ferr_ref ferr_lib_err[] = { .description = "FRR has detected an issue with the Zero MQ subsystem and ZeroMQ\nis not working properly now", .suggestion = "Open an Issue with all relevant log files and restart FRR" }, + { + .code = LIB_ERR_UNAVAILABLE, + .title = "Feature or system unavailable", + .description = "FRR was not compiled with support for a particular feature, or it is not available on the current platform", + .suggestion = "Recompile FRR with the feature enabled, or find out what platforms support the feature" + }, { .code = END_FERR, } }; +/* clang-format on */ void lib_error_init(void) { -- cgit v1.2.3