summaryrefslogtreecommitdiffstats
path: root/isisd/isis_events.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-18 20:56:15 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit54ece69899efe2a5713f3e28c7afa2075990d405 (patch)
tree197ca853121f7db27afc60eb372b28842619d952 /isisd/isis_events.c
parentisisd: Convert to use LIB_ERR_XXX (diff)
downloadfrr-54ece69899efe2a5713f3e28c7afa2075990d405.tar.xz
frr-54ece69899efe2a5713f3e28c7afa2075990d405.zip
isisd: Add isis_errors and generate custom Error Codes
Generate appropriate error codes for ISIS. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd/isis_events.c')
-rw-r--r--isisd/isis_events.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/isisd/isis_events.c b/isisd/isis_events.c
index 349ec262c..ad0fbc97e 100644
--- a/isisd/isis_events.c
+++ b/isisd/isis_events.c
@@ -48,6 +48,7 @@
#include "isisd/isis_csm.h"
#include "isisd/isis_events.h"
#include "isisd/isis_spf.h"
+#include "isisd/isis_errors.h"
/* debug isis-spf spf-events
4w4d: ISIS-Spf (tlt): L2 SPF needed, new adjacency, from 0x609229F4
@@ -156,9 +157,9 @@ void isis_circuit_is_type_set(struct isis_circuit *circuit, int newtype)
return; /* No change */
if (!(newtype & circuit->area->is_type)) {
- zlog_err(
- "ISIS-Evt (%s) circuit type change - invalid level %s because"
- " area is %s",
+ zlog_ferr(
+ ISIS_ERR_CONFIG,
+ "ISIS-Evt (%s) circuit type change - invalid level %s because area is %s",
circuit->area->area_tag, circuit_t2string(newtype),
circuit_t2string(circuit->area->is_type));
return;