]> git.proxmox.com Git - mirror_frr.git/commit
tests: Ensure routes are not queued when calling verify_rib
authorDonald Sharp <sharpd@nvidia.com>
Thu, 19 May 2022 19:54:59 +0000 (15:54 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 20 May 2022 14:31:48 +0000 (10:31 -0400)
commit6ec742d95fc444457d27f5d5b59c6045550fe722
tree3dc400e7da479ceea7f8cf3874a18fca46b549af
parentcbbb1813a6f8880b72f7b5c5f74f20b5dc49a0a4
tests: Ensure routes are not queued when calling verify_rib

Lots of tests call verify_rib that takes a list of routes that
need to be verified in some fashion.  This verify_rib functionality
will try up to 12 seconds before failing the check that zebra
has the route and has installed it.

Unfortunately the verify_rib code was not looking to see if
the route was queued for installation and was then allowing
tests to immediately do subsuquent steps that depended on
that route actually being installed sometimes causing tests
to fail.

Write a bit of additional code that looks at the queued
status and allows the test to wait a bit longer for zebra
to finish processing before allowing the test to move on
to the next bit.

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