Merge pull request #13924 from FRRouting/mergify/bp/dev/9.0/pr-13894

lib: Add two places we were not counting route-map applied (backport #13894)
This commit is contained in:
Donatas Abraitis 2023-07-04 21:25:46 +03:00 committed by GitHub
commit 18e9025042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}