summaryrefslogtreecommitdiff
path: root/pimd/pim_join.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2025-02-16 10:59:05 +0100
committerCarmine Scarpitta <cscarpit@cisco.com>2025-02-16 11:14:54 +0100
commitc621b5e759ecbbb1ac7b43e8d70428fd6b0a50a1 (patch)
tree2cc36e8bc0ffc7d5c096e918c3a326da8cb00bb4 /pimd/pim_join.c
parent206a647ea64b4810386b718efe83ffb734f18bd9 (diff)
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>
Diffstat (limited to 'pimd/pim_join.c')
0 files changed, 0 insertions, 0 deletions