Message ID | 20210913123935.10761-2-aleksei.kodanev@bell-sw.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] lib/tst_net.sh: ignore errors on rhost with -i option in tst_net_run() | expand |
Hi Alexey,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Thanks!
Kind regards,
Petr
Hi, Obviously `sysctl -qw net.ipv6.conf.$iface.accept_dad=0` would failed if ipv6 is off. It caused failures of tests when ipv6 is off in our internal environment. No mean to blame the commit, just report the issue : ) Thanks, Su
diff --git a/testcases/lib/tst_net.sh b/testcases/lib/tst_net.sh index 7f2a1bab3..89d4c79ec 100644 --- a/testcases/lib/tst_net.sh +++ b/testcases/lib/tst_net.sh @@ -517,6 +517,7 @@ tst_init_iface() ip link set $iface down || return $? ip route flush dev $iface || return $? ip addr flush dev $iface || return $? + sysctl -qw net.ipv6.conf.$iface.accept_dad=0 || return $? ip link set $iface up return $? fi @@ -528,6 +529,7 @@ tst_init_iface() tst_rhost_run -c "ip link set $iface down" || return $? tst_rhost_run -c "ip route flush dev $iface" || return $? tst_rhost_run -c "ip addr flush dev $iface" || return $? + tst_rhost_run -c "sysctl -qw net.ipv6.conf.$iface.accept_dad=0" || return $? tst_rhost_run -c "ip link set $iface up" }