testing: Flush state and policies before every scenario

Similar to conntrack we make sure we are working on a clean slate.
This commit is contained in:
Tobias Brunner
2015-08-21 18:27:06 +02:00
parent d8fdd1018e
commit c91682d1b8
+8
View File
@@ -364,6 +364,14 @@ do
ssh $SSHCONF root@`eval echo \\\$ipv4_$host` 'conntrack -F' >/dev/null 2>&1
done
##########################################################################
# flush IPsec state on all hosts
#
for host in $STRONGSWANHOSTS
do
ssh $SSHCONF root@`eval echo \\\$ipv4_$host` 'ip xfrm state flush; ip xfrm policy flush' >/dev/null 2>&1
done
##########################################################################
# execute pre-test commands