Skip to content

Commit

Permalink
isisd: Added changes to track route-map usage in isis.
Browse files Browse the repository at this point in the history
Updated the routemap applied counter wherever
route map attached/detached  to a redistribution list.

Signed-off-by: RajeshGirada <rgirada@vmware.com>
  • Loading branch information
rgirada committed Feb 4, 2019
1 parent 4a2a09d commit 5478b00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions isisd/isis_redist.c
Expand Up @@ -338,12 +338,14 @@ static void isis_redist_routemap_set(struct isis_redist *redist,
{
if (redist->map_name) {
XFREE(MTYPE_ISIS, redist->map_name);
route_map_counter_decrement(redist->map);
redist->map = NULL;
}

if (routemap && strlen(routemap)) {
redist->map_name = XSTRDUP(MTYPE_ISIS, routemap);
redist->map = route_map_lookup_by_name(routemap);
route_map_counter_increment(redist->map);
}
}

Expand Down

0 comments on commit 5478b00

Please sign in to comment.