From 5478b000ea21e7a9f8100e742eedbc21591b8afc Mon Sep 17 00:00:00 2001 From: rgirada Date: Mon, 4 Feb 2019 05:11:36 -0800 Subject: [PATCH] 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 --- isisd/isis_redist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c index 815de513fc..20f3e62a74 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); } } -- 2.39.5