summaryrefslogtreecommitdiffstats
path: root/lib/lib_errors.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-06-19 20:29:05 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit43e52561b476e4810e0a1280769e800e2d619621 (patch)
tree9d8639c395d92ebcd38261371ec2103f36ce42b5 /lib/lib_errors.c
parentisisd: Cleanup compile issue (diff)
downloadfrr-43e52561b476e4810e0a1280769e800e2d619621.tar.xz
frr-43e52561b476e4810e0a1280769e800e2d619621.zip
zebra, lib: error references for zebra
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/lib_errors.c')
-rw-r--r--lib/lib_errors.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/lib_errors.c b/lib/lib_errors.c
index d45e21ddc..1faee603c 100644
--- a/lib/lib_errors.c
+++ b/lib/lib_errors.c
@@ -21,6 +21,7 @@
#include <zebra.h>
#include <lib_errors.h>
+/* clang-format off */
static struct ferr_ref ferr_lib_err[] = {
{
.code = LIB_ERR_PRIVILEGES,
@@ -101,9 +102,16 @@ static struct ferr_ref ferr_lib_err[] = {
.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)
{