There were a couple of places where it was possible a route-map
was applied( and DENIED ) but the count for the number of times
the application happen was not incremented.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit
bdcea06d6a9a610200f8be7b9f86d22bf9663be9)
struct prefix conv;
if (recursion > RMAP_RECURSION_LIMIT) {
+ if (map)
+ map->applied++;
+
flog_warn(
EC_LIB_RMAP_RECURSION_LIMIT,
"route-map recursion limit (%d) reached, discarding route",
}
if (map == NULL || map->head == NULL) {
+ if (map)
+ map->applied++;
ret = RMAP_DENYMATCH;
goto route_map_apply_end;
}