This script can be used in pretest.dat files to wait until an IPsec connection becomes available. This avoids unconditional sleeps and improves test performance. The ipv6 tests have been updated to use the expect-connection script.
12 lines
391 B
Plaintext
12 lines
391 B
Plaintext
moon::/etc/init.d/iptables start 2> /dev/null
|
|
sun::/etc/init.d/iptables start 2> /dev/null
|
|
alice::"ip route add fec2:\:/16 via fec1:\:1"
|
|
moon::"ip route add fec2:\:/16 via fec0:\:2"
|
|
sun::"ip route add fec1:\:/16 via fec0:\:1"
|
|
bob::"ip route add fec1:\:/16 via fec2:\:1"
|
|
moon::ipsec start
|
|
sun::ipsec start
|
|
moon::expect-connection net-net
|
|
sun::expect-connection net-net
|
|
moon::ipsec up net-net
|