]> git.puffer.fish Git - matthieu/frr.git/commit
tests: Fix test_bgp_vpnv4_per_nexthop_label.py to handle timing changes
authorDonald Sharp <sharpd@nvidia.com>
Fri, 26 Jul 2024 18:02:31 +0000 (14:02 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 26 Jul 2024 18:19:43 +0000 (14:19 -0400)
commit6914cceea2ac6c9caed6cd7035e7c163ebc9d6ce
tree8e99ea7b0efeeda1b50971e9b02b81067ef8e286
parentc682ddd1002070179735ec8dfd3087a61fea84df
tests: Fix test_bgp_vpnv4_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_vpnv4_per_nexthop_label/test_bgp_vpnv4_per_nexthop_label.py