summaryrefslogtreecommitdiffstats
path: root/isisd/isis_redist.c
diff options
context:
space:
mode:
authorrgirada <rgirada@vmware.com>2019-02-04 14:11:36 +0100
committerrgirada <rgirada@vmware.com>2019-02-04 14:11:36 +0100
commit5478b000ea21e7a9f8100e742eedbc21591b8afc (patch)
tree746af8c94f386752d8b5da87ef645495e24fb537 /isisd/isis_redist.c
parentlib: Implemented a cli "show route-map-unsed" to track all unsed routemaps. (diff)
downloadfrr-5478b000ea21e7a9f8100e742eedbc21591b8afc.tar.xz
frr-5478b000ea21e7a9f8100e742eedbc21591b8afc.zip
isisd: Added changes to track route-map usage in isis.
Updated the routemap applied counter wherever route map attached/detached to a redistribution list. Signed-off-by: RajeshGirada <rgirada@vmware.com>
Diffstat (limited to 'isisd/isis_redist.c')
-rw-r--r--isisd/isis_redist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c
index 815de513f..20f3e62a7 100644
--- a/isisd/isis_redist.c
+++ b/isisd/isis_redist.c
@@ -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);
}
}