summaryrefslogtreecommitdiff
path: root/lib/lib_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-14 09:13:18 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 20:02:05 +0000
commit481bc15ffcebcc7d0395a3ffa8ce70249e221d5b (patch)
tree9c11638144a147251871840b9fb94429433cfe32 /lib/lib_errors.c
parent3ec8b5b8980bb0267f32dfc2508c457db55d5156 (diff)
lib: Add LIB_ERR_SYSTEM_CALL and convert VRF_SOCKET to SOCKET
Add a new error code LIB_ERR_SYSTEM_CALL to the ferr subsystem. Additionally convert LIB_ERR_VRF_SOCKET to a more generic LIB_ERR_SOCKET. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/lib_errors.c')
-rw-r--r--lib/lib_errors.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/lib_errors.c b/lib/lib_errors.c
index c98534da03..f9bfa17b2e 100644
--- a/lib/lib_errors.c
+++ b/lib/lib_errors.c
@@ -35,9 +35,9 @@ static struct ferr_ref ferr_lib_err[] = {
.suggestion = "Ensure that there is sufficient memory to start processes and restart FRR",
},
{
- .code = LIB_ERR_VRF_SOCKET,
- .title = "VRF Socket Error",
- .description = "When attempting to access a socket for the VRF specified, we\nwere unable to properly complete the request",
+ .code = LIB_ERR_SOCKET,
+ .title = "Socket Error",
+ .description = "When attempting to access a socket a system error has occured\nand we were 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",
},
{
@@ -59,7 +59,13 @@ static struct ferr_ref ferr_lib_err[] = {
.suggestion = "Restart FRR"
},
{
- .code = END_FERR
+ .code = LIB_ERR_SYSTEM_CALL,
+ .title = "System Call Error",
+ .description = "FRR has detected a error from using a vital system call and has probably\nalready exited",
+ .suggestion = "Ensure permissions are correct for FRR and FRR user and groups are correct\nAdditionally check that system resources are still available"
+ },
+ {
+ .code = END_FERR,
}
};