diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-20 10:21:03 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-06 20:50:58 +0000 |
| commit | 040c7c3a9fcaba31cc49606eb8168f2d4f92541c (patch) | |
| tree | cf5d0ff72b0f64f5b4323d54533130cefbfea05d /lib/routemap.c | |
| parent | ff245f0e02ba28e773d9e86e8417a074b05ff716 (diff) | |
lib: Convert routemap.c to use new error-code subsystem
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index e5613c2081..9e3dd3c0ae 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -30,6 +30,7 @@ #include "log.h" #include "hash.h" #include "libfrr.h" +#include "lib_errors.h" DEFINE_MTYPE_STATIC(LIB, ROUTE_MAP, "Route map") DEFINE_MTYPE(LIB, ROUTE_MAP_NAME, "Route map name") @@ -1445,7 +1446,8 @@ route_map_result_t route_map_apply(struct route_map *map, struct route_map_rule *set; if (recursion > RMAP_RECURSION_LIMIT) { - zlog_warn( + flog_warn( + LIB_WARN_RMAP_RECURSION_LIMIT, "route-map recursion limit (%d) reached, discarding route", RMAP_RECURSION_LIMIT); recursion = 0; |
