From 1ca3850c88035cef8bb2fe0f45112f774d9a328e Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 14 Jun 2018 08:56:27 -0400 Subject: lib: Convert to zlog_ferr for zclient.c Convert the zclient.c file to use zlog_ferr. Signed-off-by: Donald Sharp --- lib/lib_errors.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/lib_errors.c') diff --git a/lib/lib_errors.c b/lib/lib_errors.c index 73b90a9c55..c98534da03 100644 --- a/lib/lib_errors.c +++ b/lib/lib_errors.c @@ -40,6 +40,24 @@ static struct ferr_ref ferr_lib_err[] = { .description = "When attempting to access a socket for the VRF specified, we\nwere unable to properly complete the request", .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 } -- cgit v1.2.3