]> git.puffer.fish Git - matthieu/frr.git/commit
tests: zebra_seg6local has a race condition
authorDonald Sharp <sharpd@nvidia.com>
Fri, 29 Oct 2021 12:47:05 +0000 (08:47 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 29 Oct 2021 12:53:03 +0000 (08:53 -0400)
commit25347872bf6c62ae596d95571edfec3df38333a1
treed5f01ac2505a7f51554fa4c4393e404f51cba367
parenta1a8fb4ddd1e39252cd039244c8eca3e1d8b2bad
tests: zebra_seg6local has a race condition

The test is checking installing of seg6 routes by this
loop:

for up to 5 times:
    sharp install seg6 route
    show ip route and is it installed

The problem is that if the system is under heavy
load the installation may not have happened yet
and by immediately reinstalling the same route
the same thing could happen again.

Modify the code to pull the route installation
outside of the loop and to increase to 10 attempts
in case there is very heavy system load.

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