/testing/guestbin/swan-prep
west #
 # confirm that the network is alive
west #
 ../../guestbin/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: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --impair major_version_bump
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair revival
west #
 ipsec auto --add westnet-eastnet-ikev2-major
"westnet-eastnet-ikev2-major": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec auto --up westnet-eastnet-ikev2-major
"westnet-eastnet-ikev2-major" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"westnet-eastnet-ikev2-major" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"westnet-eastnet-ikev2-major" #1: dropping unexpected IKE_SA_INIT message containing INVALID_MAJOR_VERSION notification; message payloads: N; missing payloads: SA,KE,Ni
"westnet-eastnet-ikev2-major" #1: IMPAIR: retransmit so timing out SA (may retry)
"westnet-eastnet-ikev2-major" #1: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"westnet-eastnet-ikev2-major" #1: IMPAIR: revival: skip scheduling revival event
"westnet-eastnet-ikev2-major" #1: deleting IKE SA (sent IKE_SA_INIT request)
west #
 echo done
done
west #
 grep '^[^|].*INVALID_MAJOR_VERSION' /tmp/pluto.log
"westnet-eastnet-ikev2-major" #1: dropping unexpected IKE_SA_INIT message containing INVALID_MAJOR_VERSION notification; message payloads: N; missing payloads: SA,KE,Ni
west #
 
