mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 14:23:02 +02:00
test: increase timeout for gre/vxlan tunnel-ttl
Send 10 pings, expect at least one. The GRE test passes with two received ICMP messages on the Styx test rig, while the VXLAN test fails with -c 3, so try waiting a bit longer. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -247,14 +247,14 @@ with infamy.Test() as test:
|
||||
west_ns.addip(PC_WEST_HOST)
|
||||
west_ns.addroute("default", PC_WEST_R1)
|
||||
|
||||
# Send 3 pings with TTL=3, TTL is decremented before each
|
||||
# Send 10 pings with TTL=3, TTL is decremented before each
|
||||
# router hop. So at PC:west (TTL=3) -> R1 routed to GRE
|
||||
# tunnel (TTL=2) -> frame egresses tunnel -> R3 where it
|
||||
# is routed to PC:east (TTL=1).
|
||||
#
|
||||
# If outer TTL was inherited (TTL=2), packet would be
|
||||
# dropped at R3.
|
||||
west_ns.runsh(f"ping -c 3 -t {TEST_TTL} {PC_EAST_HOST}")
|
||||
west_ns.runsh(f"ping -c 10 -t {TEST_TTL} {PC_EAST_HOST}")
|
||||
|
||||
with test.step("Verify packets arrived at PC:east"):
|
||||
packets = pcap.tcpdump()
|
||||
|
||||
Reference in New Issue
Block a user