/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 echo "initdone"
initdone
west #
 ipsec add time-good
"time-good": added oriented IKEv2 connection
west #
 # rekey_margin: should be less than rekey interval
west #
 ipsec status | grep margin
"time-good":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 10s; rekey_fuzz: 100%; clones: no (unset);
west #
 # output is unpredictable, include ephemeral values
west #
 ipsec addconn time-wip
"time-wip": added oriented IKEv2 connection
west #
 ipsec status | grep time-wip | grep margin
"time-wip":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 10s; rekey_fuzz: 100%; clones: no (unset);
west #
 ipsec addconn time-wip-hex
"time-wip-hex": failed to add connection: "rekeymargin=0xA" invalid, unrecognized duration multiplier "xA"
west #
 ipsec status | grep time-wip-hex | grep margin
west #
