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 <vdhingra@vmware.com>
This commit is contained in:
vishaldhingra 2019-05-08 20:53:35 -07:00 committed by Donald Sharp
parent 1377170ba7
commit 0f8cf61ae6

View File

@ -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: