ospfd: Modify ospf_spf.c to use error-card subsystem

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-08-21 09:36:28 -04:00 committed by Quentin Young
parent 239697e3b2
commit 668e8a1183

View File

@ -47,6 +47,7 @@
#include "ospfd/ospf_abr.h" #include "ospfd/ospf_abr.h"
#include "ospfd/ospf_dump.h" #include "ospfd/ospf_dump.h"
#include "ospfd/ospf_sr.h" #include "ospfd/ospf_sr.h"
#include "ospfd/ospf_errors.h"
/* Variables to ensure a SPF scheduled log message is printed only once */ /* Variables to ensure a SPF scheduled log message is printed only once */
@ -859,7 +860,8 @@ static void ospf_spf_next(struct vertex *v, struct ospf *ospf,
zlog_debug("found the LSA"); zlog_debug("found the LSA");
break; break;
default: default:
zlog_warn("Invalid LSA link type %d", type); flog_warn(OSPF_WARN_LSA,
"Invalid LSA link type %d", type);
continue; continue;
} }
} else { } else {