From 5ed2e47bbd295334bcf6a5bbf581f4ebc93065c5 Mon Sep 17 00:00:00 2001 From: vishaldhingra Date: Wed, 8 May 2019 20:53:35 -0700 Subject: [PATCH] lib : Child rmap not sending an update to parent rmap,if there is an update in child rmap. Route map library creates a hash table to save the dependency binding. route-map LRM permit 1 call rLRM Whenever there is change in child routemap(rLRM), it tries to find the dependency mapping with the child route map MATCH event and it fails.The handing of match add and match delete was missing to get the correct dependency,here it's LRM. This fix would correct the flow to get the correct dependency. Signed-off-by: vishaldhingra --- lib/routemap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/routemap.c b/lib/routemap.c index 4898a8d0fa..5cfcf6651d 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -1828,6 +1828,8 @@ static struct hash *route_map_get_dep_hash(route_map_event_t event) break; case RMAP_EVENT_CALL_ADDED: case RMAP_EVENT_CALL_DELETED: + case RMAP_EVENT_MATCH_ADDED: + case RMAP_EVENT_MATCH_DELETED: upd8_hash = route_map_dep_hash[ROUTE_MAP_DEP_RMAP]; break; case RMAP_EVENT_FILTER_ADDED: -- 2.39.5