From 54ece69899efe2a5713f3e28c7afa2075990d405 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 18 Jun 2018 14:56:15 -0400 Subject: isisd: Add isis_errors and generate custom Error Codes Generate appropriate error codes for ISIS. Signed-off-by: Donald Sharp --- isisd/isis_events.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'isisd/isis_events.c') 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; -- cgit v1.2.3