]> git.puffer.fish Git - matthieu/frr.git/commit
tests: Fix verify_rib such that it will look at the selected route
authorDonald Sharp <sharpd@nvidia.com>
Tue, 14 Jun 2022 16:21:19 +0000 (12:21 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 14 Jun 2022 16:21:19 +0000 (12:21 -0400)
commit853585a7cd6eeb527fbd8a9ed02c86eb8c7aafa1
tree5196076b9dd21c8ee18b98569ecf26a6f6a8b16b
parentb3a35b33c07d670b11760f6c726ebe0edbbb4142
tests: Fix verify_rib such that it will look at the selected route

When you have a static route with multiple different admin
distances there exists a chance that route will have been
installed multiple times due to system load when inserted
at about the same time.  If this is the case then the
verify_rib function can and will select the wrong route
that happens to have a nexthop group that is still installed.

Modify verify_rib to ensure that the route that is going to
be looked at for nexthop correctness is the actual installed
route, not a previous version of it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/lib/common_config.py