]> git.proxmox.com Git - mirror_frr.git/commit - lib/routemap.c
libfrr: Retain ret value if the best idx is found
authorNaveen Thanikachalam <nthanikachal@vmware.com>
Tue, 14 Jul 2020 16:15:27 +0000 (09:15 -0700)
committerNaveen Thanikachalam <nthanikachal@vmware.com>
Tue, 14 Jul 2020 16:28:38 +0000 (09:28 -0700)
commit1410dd3f1b0648d75490995153e8a70fc9eb39f7
tree7e6dd99ca4da8c0a15acbf028c4181f174d3753c
parent8803809f0b51319606b339db00684f1f0eddfc0f
libfrr: Retain ret value if the best idx is found

While iteratively looking for a best match route-map index amongst
a list of potential best match route-map indices, if a candidate
best match index is already found, disregard the value returned by
the function route_map_apply_match() if it returns either RMAP_NOOP
or RMAP_NOMATCH in the following iterations.
This is because if a best match route-map index is found then, the
return value must always be set to RMAP_MATCH.

Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com>
lib/routemap.c