lib: Add two places we were not counting route-map applied

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>
This commit is contained in:
Donald Sharp 2023-06-30 09:56:51 -04:00
parent c738d8db03
commit bdcea06d6a

View file

@ -2554,6 +2554,9 @@ route_map_result_t route_map_apply_ext(struct route_map *map,
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",
@ -2563,6 +2566,8 @@ route_map_result_t route_map_apply_ext(struct route_map *map,
}
if (map == NULL || map->head == NULL) {
if (map)
map->applied++;
ret = RMAP_DENYMATCH;
goto route_map_apply_end;
}