summaryrefslogtreecommitdiffstats
path: root/lib/lib_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-14 14:56:27 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit1ca3850c88035cef8bb2fe0f45112f774d9a328e (patch)
tree4dfcb3db3c320820a32a87c79de05846784d496e /lib/lib_errors.c
parentlib, bgpd: Add code to make lib auto create the ferr infrastructure (diff)
downloadfrr-1ca3850c88035cef8bb2fe0f45112f774d9a328e.tar.xz
frr-1ca3850c88035cef8bb2fe0f45112f774d9a328e.zip
lib: Convert to zlog_ferr for zclient.c
Convert the zclient.c file to use zlog_ferr. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/lib_errors.c')
-rw-r--r--lib/lib_errors.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/lib_errors.c b/lib/lib_errors.c
index 73b90a9c5..c98534da0 100644
--- a/lib/lib_errors.c
+++ b/lib/lib_errors.c
@@ -41,6 +41,24 @@ static struct ferr_ref ferr_lib_err[] = {
.suggestion = "Ensure that there is sufficient system resources available and\nensure that the frr user has sufficient permisions to work",
},
{
+ .code = LIB_ERR_ZAPI_MISSMATCH,
+ .title = "Zapi Error",
+ .description = "A version miss-match has been detected between zebra and client protocol",
+ .suggestion = "Two different versions of FRR have been installed and the install is\nnot properly setup. Completely stop FRR, remove it from the system and\nreinstall. Typically only developers should see this issue"
+ },
+ {
+ .code = LIB_ERR_ZAPI_ENCODE,
+ .title = "Zapi Error",
+ .description = "The Zapi subsystem has detected an encoding issue, between zebra and a client protocol",
+ .suggestion = "Restart FRR"
+ },
+ {
+ .code = LIB_ERR_ZAPI_SOCKET,
+ .title = "Zapi Error",
+ .description = "The Zapi subsystem has detected a socket error between zebra and a client",
+ .suggestion = "Restart FRR"
+ },
+ {
.code = END_FERR
}
};