mirror_frr/tests/topotests/srv6_encap_src_addr
Carmine Scarpitta c621b5e759 tests: Fix intermittent failures in srv6_encap_src_addr topotest
The `srv6_encap_src_addr` runs a vtysh command to configure the SRv6
encapsulation source address and then immediately invokes an iproute2
command to verify that zebra has set this address in the kernel. There
is no wait between the two operations and the verification is attempted
only once. If the topotest does not find the expected address it fails
immediately.

The problem is that when topotest is run on a heavyily loaded system,
it can take some time for zebra to set the address in the kernel.
In this case, when the topotest checks the kernel address right after
running the vtysh command, it doesn't find the expected address because
zebra hasn't set it yet.

This commit gives zebra some time to configure the address. It keeps to
check that the address is the expected one for about 1 minute. If after
1 minute the address is not the expected one then the test fails.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-16 11:14:54 +01:00
..
r1 tests: Fix intermittent failures in srv6_encap_src_addr topotest 2025-02-16 11:14:54 +01:00
__init__.py tests: Add topotests for SRv6 encap source address 2023-12-14 14:58:35 +01:00
test_srv6_encap_src_addr.py tests: Fix intermittent failures in srv6_encap_src_addr topotest 2025-02-16 11:14:54 +01:00