summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_routemap.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-20 20:45:25 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 22:50:58 +0200
commit45301f8cb2305153931d05fe227a795bed34adf4 (patch)
tree853c023b71ce8efcb039b2005655b596fd73f4b5 /ospfd/ospf_routemap.c
parentospfd: Convert ospf_network.c to use error code subsystem (diff)
downloadfrr-45301f8cb2305153931d05fe227a795bed34adf4.tar.xz
frr-45301f8cb2305153931d05fe227a795bed34adf4.zip
ospfd: Convert ospf_routemap.c to use error card subsystem
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_routemap.c')
-rw-r--r--ospfd/ospf_routemap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_routemap.c b/ospfd/ospf_routemap.c
index c5ec1db33..d4513eebd 100644
--- a/ospfd/ospf_routemap.c
+++ b/ospfd/ospf_routemap.c
@@ -40,6 +40,7 @@
#include "ospfd/ospf_lsa.h"
#include "ospfd/ospf_route.h"
#include "ospfd/ospf_zebra.h"
+#include "ospfd/ospf_errors.h"
/* Hook function for updating route_map assignment. */
static void ospf_route_map_update(const char *name)
@@ -392,7 +393,8 @@ static void *route_set_metric_compile(const char *arg)
metric->type = metric_absolute;
if (strmatch(arg, "+rtt") || strmatch(arg, "-rtt")) {
- zlog_warn("OSPF does not support 'set metric +rtt / -rtt'");
+ flog_warn(OSPF_WARN_SET_METRIC_PLUS,
+ "OSPF does not support 'set metric +rtt / -rtt'");
return metric;
}