/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec add west-to-east
"west-to-east": added oriented IKEv2 connection
west #
 ipsec route west-to-east
west #
 REQID=$(ipsec status | sed -n 's/.*"west-to-east":.*reqid: \([0-9]*\);.*/\1/p')
west #
 echo "west-to-east reqid: $REQID"
west-to-east reqid: REQID
west #
 ipsec whack --oppohere 192.0.1.254 --oppothere 192.0.2.254 --opporeqid $REQID > /dev/null 2>&1
west #
 grep -o "reqid lookup matched connection \"west-to-east\" (policy_id [0-9]*)" /tmp/pluto.log
reqid lookup matched connection "west-to-east" (policy_id REQID)
west #
