mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:06:51 +00:00
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>
(cherry picked from commit bdcea06d6a
)
This commit is contained in:
parent
0d3cd35d5f
commit
e003329475
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user