forked from Mirror/frr
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:
parent
c738d8db03
commit
bdcea06d6a
|
@ -2554,6 +2554,9 @@ route_map_result_t route_map_apply_ext(struct route_map *map,
|
||||||
struct prefix conv;
|
struct prefix conv;
|
||||||
|
|
||||||
if (recursion > RMAP_RECURSION_LIMIT) {
|
if (recursion > RMAP_RECURSION_LIMIT) {
|
||||||
|
if (map)
|
||||||
|
map->applied++;
|
||||||
|
|
||||||
flog_warn(
|
flog_warn(
|
||||||
EC_LIB_RMAP_RECURSION_LIMIT,
|
EC_LIB_RMAP_RECURSION_LIMIT,
|
||||||
"route-map recursion limit (%d) reached, discarding route",
|
"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 == NULL || map->head == NULL) {
|
||||||
|
if (map)
|
||||||
|
map->applied++;
|
||||||
ret = RMAP_DENYMATCH;
|
ret = RMAP_DENYMATCH;
|
||||||
goto route_map_apply_end;
|
goto route_map_apply_end;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue