Skip to content

Commit de60422

Browse files
committed
contest: virtio: improve v6 address config
nodad to reliably avoid waits, and don't flush on down. Otherwise destructive tests flush the addresses for everyone. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 4ec58f6 commit de60422

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

contest/scripts/vm-virtio-loop.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ ip -netns ns-remote addr add dev eth1 192.0.2.2/24
2424
export LOCAL_V4=192.0.2.1
2525
export REMOTE_V4=192.0.2.2
2626

27-
ip addr add dev eth0 2001:db8::1/64
28-
ip -netns ns-remote addr add dev eth1 2001:db8::2/64
27+
ip addr add dev eth0 2001:db8::1/64 nodad
28+
ip -netns ns-remote addr add dev eth1 2001:db8::2/64 nodad
2929
export LOCAL_V6=2001:db8::1
3030
export REMOTE_V6=2001:db8::2
3131

32-
sleep 2
32+
sysctl -w net.ipv6.conf.eth0.keep_addr_on_down=1
33+
# We don't bring remote down, it'd break remote via SSH
34+
35+
sleep 1

0 commit comments

Comments
 (0)