From c91682d1b82959d6d18972d0a73736c8469c8e0f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 21 Aug 2015 14:32:29 +0200 Subject: [PATCH] testing: Flush state and policies before every scenario Similar to conntrack we make sure we are working on a clean slate. --- testing/do-tests | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testing/do-tests b/testing/do-tests index f12101926..5191d9007 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -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