Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[routeorch]: Remove the logic of deciding if to add temp route or not (…
…#195) - The current logic will have a deadlock when the following scenario happens: The maximum number of next hop groups is set to 1. prefix -> [ next_hop_1, next_hop_2] When a new entry prefix -> [ next_hop_1, next_hop_2, next_hop_3 ] comes, a new next hop group cannot be created because the maximum number of next hop groups is reached. However, it will also not create a temporary route as the current next hop group is a subset of the new next hop group. In this case, the new next hop group will never be syncd. With this commit of removing the logic of deciding whether to add or not, the new entry could be syncd with a temporary route inserted first so as to remove the previous entry and release the resource. On the second try, the new entry could be inserted as the old next hop group is removed. Signed-off-by: Shuotian Cheng <[email protected]>
- Loading branch information