mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +00:00
lib: Keep track of route-map applications per section
When the routemap code was rewritten for performance the code to track the number of times a particular section of a route-map was applied was not correctly updated. In this case I found another sequence of events where the number of times a section was invoked was not being correctly kept. Effectively in this case when route_map_get_index is called and returns an index the route map has been applied( see that skip_match_clause is set to true and then in the for loop below the skip_match_clause is tested and index->applied is incremented. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
3d34678f1d
commit
284a6f5ff1
@ -2399,6 +2399,7 @@ route_map_result_t route_map_apply(struct route_map *map,
|
||||
index = route_map_get_index(map, prefix, object,
|
||||
(uint8_t *)&match_ret);
|
||||
if (index) {
|
||||
index->applied++;
|
||||
if (rmap_debug)
|
||||
zlog_debug(
|
||||
"Best match route-map: %s, sequence: %d for pfx: %pFX, result: %s",
|
||||
|
Loading…
Reference in New Issue
Block a user