summaryrefslogtreecommitdiff
path: root/ospfd/ospf_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-20 14:45:25 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 20:50:58 +0000
commit45301f8cb2305153931d05fe227a795bed34adf4 (patch)
tree853c023b71ce8efcb039b2005655b596fd73f4b5 /ospfd/ospf_errors.c
parentabcc171c93db6d4978cfe16bc1ab282c55bbba0d (diff)
ospfd: Convert ospf_routemap.c to use error card subsystem
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_errors.c')
-rw-r--r--ospfd/ospf_errors.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/ospfd/ospf_errors.c b/ospfd/ospf_errors.c
index 2927f7cb14..e321a03b84 100644
--- a/ospfd/ospf_errors.c
+++ b/ospfd/ospf_errors.c
@@ -23,6 +23,18 @@
#include "lib/ferr.h"
#include "ospf_errors.h"
+static struct log_ref ferr_ospf_warn[] = {
+ {
+ .code = OSPF_WARN_SET_METRIC_PLUS,
+ .title = "OSPF does not support `set metric +rtt/-rtt`",
+ .description = "This implementation of OSPF does not currently support `set metric +rtt/-rtt`",
+ .suggestion = "Do not use this particular set command for an ospf route-map",
+ },
+ {
+ .code = END_FERR,
+ }
+};
+
static struct log_ref ferr_ospf_err[] = {
{
.code = OSPF_ERR_PKT_PROCESS,
@@ -72,7 +84,6 @@ static struct log_ref ferr_ospf_err[] = {
.description = "OSPF Segment Routing invalid Algorithm",
.suggestion = "Most likely a bug. If the problem persists, report the problem for troubleshooting"
},
-
{
.code = END_FERR,
}
@@ -80,5 +91,6 @@ static struct log_ref ferr_ospf_err[] = {
void ospf_error_init(void)
{
+ log_ref_add(ferr_ospf_warn);
log_ref_add(ferr_ospf_err);
}