diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 14:08:34 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 |
| commit | e33b116cdf983c81fdb1b9716684a888b870899b (patch) | |
| tree | 38055319f156ee153f412020c5058a5d17d27efb /babeld/babel_errors.c | |
| parent | f135ba5272cfd892c1dfc88cf595a25da7c49fd9 (diff) | |
babeld: Convert all zlog_err to zlog_ferr and add appropriate info
Convert babeld to use zlog_ferr and add appropriate BABEL_ERR_XXX
information.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld/babel_errors.c')
| -rw-r--r-- | babeld/babel_errors.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/babeld/babel_errors.c b/babeld/babel_errors.c index e83b81d8b0..ed780ea1bb 100644 --- a/babeld/babel_errors.c +++ b/babeld/babel_errors.c @@ -30,6 +30,24 @@ static struct ferr_ref ferr_babel_err[] = { .suggestion = "Find the process that is causing memory shortages and remediate that process\nRestart FRR" }, { + .code = BABEL_ERR_PACKET, + .title = "BABEL Packet Error", + .description = "Babel has detected a packet encode/decode problem", + .suggestion = "Collect relevant log files and file an Issue" + }, + { + .code = BABEL_ERR_CONFIG, + .title = "BABEL Configuration Error", + .description = "Babel has detected a configuration error of some sort", + .suggestion = "Ensure that the configuration is correct" + }, + { + .code = BABEL_ERR_ROUTE, + .title = "BABEL Route Error", + .description = "Babel has detected a routing error and has an inconsistent state", + .suggestion = "Gather data for filing an Issue and then restart FRR" + }, + { .code = END_FERR, } }; |
