]> git.puffer.fish Git - matthieu/frr.git/commit
tests: Fix test_bgp_vpnv6_per_nexthop_label.py to handle timing changes
authorDonald Sharp <sharpd@nvidia.com>
Fri, 26 Jul 2024 18:15:40 +0000 (14:15 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 26 Jul 2024 18:19:49 +0000 (14:19 -0400)
commit77a296cb0898b1839ef4a86a7ad1a4b7d33270e8
tree316a2fcd716ab5e9cadb94ff9214c3d0ec93b802
parent6914cceea2ac6c9caed6cd7035e7c163ebc9d6ce
tests: Fix test_bgp_vpnv6_per_nexthop_label.py to handle timing changes

So the test script is making changes to a vpn configuration by
changing something fundamental about the vpn.  This is causing
a window where routes we are interested in are:
present ( from pre-change ) then
withdrawn ( the test change causes this ) then
present ( with the new data )

The test code was trying to test for this by checking
to see if the prefix was there, but due to timing issues
it's not always there when we look for it.

Modify the test to get the vpn table version prior to
the change( as that it should not be moving around ) and
then change the test for the prefix to look for a version
that is later than the vpn's table version.  Then we know
that it is *after* everything has stabilized again.

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