summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_te.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-21 01:47:59 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 22:50:58 +0200
commit85c9b439498077e97f0b0e060e3082a08e21d51e (patch)
treea62518def647697886764a65c9e0c6d8fe009332 /ospfd/ospf_te.c
parentlib: Convert ospf_opaque.c to use the err-card system (diff)
downloadfrr-85c9b439498077e97f0b0e060e3082a08e21d51e.tar.xz
frr-85c9b439498077e97f0b0e060e3082a08e21d51e.zip
ospfd: Add OSPF_WARN_OPAQUE_REGISTRATION
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r--ospfd/ospf_te.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c
index f8722f9c8..842889311 100644
--- a/ospfd/ospf_te.c
+++ b/ospfd/ospf_te.c
@@ -61,6 +61,7 @@
#include "ospfd/ospf_zebra.h"
#include "ospfd/ospf_te.h"
#include "ospfd/ospf_vty.h"
+#include "ospfd/ospf_errors.h"
/*
* Global variable to manage Opaque-LSA/MPLS-TE on this node.
@@ -102,8 +103,8 @@ int ospf_mpls_te_init(void)
ospf_mpls_te_lsa_refresh, NULL, /* ospf_mpls_te_new_lsa_hook */
NULL /* ospf_mpls_te_del_lsa_hook */);
if (rc != 0) {
- zlog_warn(
- "ospf_mpls_te_init: Failed to register Traffic Engineering functions");
+ flog_warn(OSPF_WARN_OPAQUE_REGISTRATION,
+ "ospf_mpls_te_init: Failed to register Traffic Engineering functions");
return rc;
}
@@ -139,8 +140,8 @@ static int ospf_mpls_te_register(enum inter_as_mode mode)
ospf_mpls_te_lsa_refresh, NULL, NULL);
if (rc != 0) {
- zlog_warn(
- "ospf_router_info_init: Failed to register Inter-AS functions");
+ flog_warn(OSPF_WARN_OPAQUE_REGISTRATION,
+ "ospf_router_info_init: Failed to register Inter-AS functions");
return rc;
}