diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 20:56:15 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | 54ece69899efe2a5713f3e28c7afa2075990d405 (patch) | |
tree | 197ca853121f7db27afc60eb372b28842619d952 /isisd/isis_circuit.c | |
parent | isisd: Convert to use LIB_ERR_XXX (diff) | |
download | frr-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_circuit.c')
-rw-r--r-- | isisd/isis_circuit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c index 42041a7c4..04247e8e1 100644 --- a/isisd/isis_circuit.c +++ b/isisd/isis_circuit.c @@ -57,6 +57,7 @@ #include "isisd/isis_events.h" #include "isisd/isis_te.h" #include "isisd/isis_mt.h" +#include "isisd/isis_errors.h" DEFINE_QOBJ_TYPE(isis_circuit) @@ -566,7 +567,8 @@ int isis_circuit_up(struct isis_circuit *circuit) return ISIS_OK; if (circuit->area->lsp_mtu > isis_circuit_pdu_size(circuit)) { - zlog_err( + zlog_ferr( + ISIS_ERR_CONFIG, "Interface MTU %zu on %s is too low to support area lsp mtu %u!", isis_circuit_pdu_size(circuit), circuit->interface->name, circuit->area->lsp_mtu); @@ -577,7 +579,9 @@ int isis_circuit_up(struct isis_circuit *circuit) if (circuit->circ_type == CIRCUIT_T_BROADCAST) { circuit->circuit_id = isis_circuit_id_gen(isis, circuit->interface); if (!circuit->circuit_id) { - zlog_err("There are already 255 broadcast circuits active!"); + zlog_ferr( + ISIS_ERR_CONFIG, + "There are already 255 broadcast circuits active!"); return ISIS_ERROR; } |