/testing/guestbin/swan-prep
west #
 # confirm that the network is alive
west #
 ../../pluto/bin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 ipsec start
Redirecting to: systemctl start ipsec.service
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-ikev2-major
002 added connection description "westnet-eastnet-ikev2-major"
west #
 ipsec whack --debug-all --impair-retransmits
west #
 echo "initdone"
initdone
west #
 ipsec auto --up  westnet-eastnet-ikev2-major
002 "westnet-eastnet-ikev2-major" #1: initiating v2 parent SA
133 "westnet-eastnet-ikev2-major" #1: STATE_PARENT_I1: initiate
133 "westnet-eastnet-ikev2-major" #1: STATE_PARENT_I1: sent v2I1, expected v2R1
002 "westnet-eastnet-ikev2-major" #1: suppressing retransmit because IMPAIR_RETRANSMITS is set.
west #
 echo done
done
west #
 grep "INVALID_MAJOR_VERSION" /tmp/pluto.log >/dev/null && echo payload found
payload found
west #
west #
 if [ -n "`ls /tmp/core* 2>/dev/null`" ]; then echo CORE FOUND; mv /tmp/core* OUTPUT/; fi
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

