/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 echo "initdone"
initdone
west #
 ipsec auto --add percentage-good
"percentage-good": added IKEv2 connection
west #
 # rekey_margin: should be less than rekey interval
west #
 ipsec status | grep margin
"percentage-good":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 10%;
west #
 # output is unpredictable, include ephemeral values
west #
 ipsec addconn --verbose percentage-wip
opening file: /etc/ipsec.conf
loading conns matching percentage-wip:
  sending to pluto
"percentage-wip": failed to add connection: rekeyfuzz=10foo invalid, expecting % character
west #
 ipsec status | grep margin
"percentage-good":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 10%;
west #
 ipsec addconn --verbose percentage-wip
opening file: /etc/ipsec.conf
loading conns matching percentage-wip:
  sending to pluto
"percentage-wip": failed to add connection: rekeyfuzz=10foo invalid, expecting % character
west #
 ipsec status | grep margin
"percentage-good":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 10%;
west #
