Skip to content

Commit 21a933c

Browse files
skorpion17kuba-moo
authored andcommitted
selftests: seg6: disable DAD on IPv6 router cfg for srv6_end_dt4_l3vpn_test
The srv6_end_dt4_l3vpn_test instantiates a virtual network consisting of several routers (rt-1, rt-2) and hosts. When the IPv6 addresses of rt-{1,2} routers are configured, the Deduplicate Address Detection (DAD) kicks in when enabled in the Linux distros running the selftests. DAD is used to check whether an IPv6 address is already assigned in a network. Such a mechanism consists of sending an ICMPv6 Echo Request and waiting for a reply. As the DAD process could take too long to complete, it may cause the failing of some tests carried out by the srv6_end_dt4_l3vpn_test script. To make the srv6_end_dt4_l3vpn_test more robust, we disable DAD on routers since we configure the virtual network manually and do not need any address deduplication mechanism at all. Fixes: 2195444 ("selftests: add selftest for the SRv6 End.DT4 behavior") Signed-off-by: Andrea Mayer <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 6e27831 commit 21a933c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/testing/selftests/net/srv6_end_dt4_l3vpn_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,14 @@ setup_rt_networking()
232232
local nsname=rt-${rt}
233233

234234
ip netns add ${nsname}
235+
236+
ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.accept_dad=0
237+
ip netns exec ${nsname} sysctl -wq net.ipv6.conf.default.accept_dad=0
238+
235239
ip link set veth-rt-${rt} netns ${nsname}
236240
ip -netns ${nsname} link set veth-rt-${rt} name veth0
237241

238-
ip -netns ${nsname} addr add ${IPv6_RT_NETWORK}::${rt}/64 dev veth0
242+
ip -netns ${nsname} addr add ${IPv6_RT_NETWORK}::${rt}/64 dev veth0 nodad
239243
ip -netns ${nsname} link set veth0 up
240244
ip -netns ${nsname} link set lo up
241245

0 commit comments

Comments
 (0)