mirror_frr/tests
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
..
bgpd lib: add flag to have libyang load internal ietf-yang-library module 2024-10-07 03:32:44 +00:00
helpers tests: clear -Wcalloc-transposed-args warnings 2025-01-06 15:47:55 +01:00
isisd tests: clear -Wcalloc-transposed-args warnings 2025-01-06 15:47:55 +01:00
lib Merge pull request #17649 from ariel-anieli/calloc-warns 2025-02-12 13:00:36 -05:00
ospf6d ospf6d: move lsa structs to ospf6_lsa.h 2024-09-16 18:38:16 +10:00
ospfd *: remove sys/stat.h from zebra.h 2024-01-09 12:39:23 -05:00
topotests tests: Fix intermittent failures in srv6_encap_src_addr topotest 2025-02-16 11:14:54 +01:00
zebra zebra, test: mark mpls label chunks as dynamic or static 2023-10-18 09:41:02 +02:00
.gitignore tests: Ignore test_darr for git 2023-07-08 22:41:34 +03:00
Makefile
pytest.ini
runtests.py
subdir.am build: break up tests/subdir.am 2021-11-11 14:40:03 +01:00