/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 echo "initdone"
initdone
west #
 # wait for east to initiate to us
west #
 ../../guestbin/wait-for-pluto.sh --match '#1: .* established'
"west-east-auto" #1: responder established IKE SA; authenticated peer using preloaded certificate '@east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature
west #
 ../../guestbin/wait-for-pluto.sh --match '#2: .* established'
"west-east-auto" #2: responder established Child SA using #1; IPsec tunnel [192.1.2.45/32===192.1.2.23/32] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256 DPD=passive}
west #
 ipsec trafficstatus
#2: "west-east-auto", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
west #
 # use delete, not down - because east has auto=start
west #
 ipsec delete west-east-auto
"west-east-auto": terminating SAs using this connection
"west-east-auto" #1: deleting IKE SA (ESTABLISHED_IKE_SA) and sending notification
"west-east-auto" #2: ESP traffic information: in=0B out=0B
west #
 # no IPsec SA should be there. No ISAKMP SA should be there either
west #
 ipsec trafficstatus
west #
 ipsec connectionstatus
Connection list:
 
Total IPsec connections: loaded 0, routed 0, active 0
west #
 # There should be no established IKE SA and no established IPsec SA
west #
 ipsec trafficstatus
west #
 # only on east, pluto should be attempting to connect to west because it has auto=start
west #
 ipsec showstates
west #
 # confirm the revive conn code triggered on east
west #
 test ! -r /tmp/pluto.log || grep -E -e '^[^|].* remain up' /tmp/pluto.log
west #
