]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib : Child rmap not sending an update to parent rmap,if there is an update in child...
authorvishaldhingra <vdhingra@vmware.com>
Thu, 9 May 2019 03:53:35 +0000 (20:53 -0700)
committervishaldhingra <vdhingra@vmware.com>
Thu, 9 May 2019 03:59:15 +0000 (20:59 -0700)
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>
lib/routemap.c

index 4898a8d0fa776e0650a6b440f4a3e8aa4b201e97..5cfcf6651d4d6aeb0bc129d4ad2c1c58e6ffa89d 100644 (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: