5 echo [STEP] Initialize two nodes
25 echo [STEP] Exchange host config files
27 tinc foo export | tinc bar exchange | tinc foo import
28 tinc bar add ConnectTo foo
30 echo [STEP] Foo 1.1, bar 1.0
32 tinc bar set ExperimentalProtocol no
33 tinc foo del bar.Ed25519PublicKey
34 tinc bar del foo.Ed25519PublicKey
36 create_script foo hosts/bar-up
37 create_script bar hosts/foo-up
42 wait_script foo hosts/bar-up
43 wait_script bar hosts/foo-up
51 test -z "$(tinc foo get bar.Ed25519PublicKey)"
52 test -z "$(tinc bar get foo.Ed25519PublicKey)"
54 echo [STEP] Foo 1.1, bar upgrades to 1.1
56 tinc bar del ExperimentalProtocol
61 wait_script foo hosts/bar-up
62 wait_script bar hosts/foo-up
70 test -n "$(tinc foo get bar.Ed25519PublicKey)"
71 test -n "$(tinc bar get foo.Ed25519PublicKey)"
73 echo [STEP] Bar downgrades, must no longer be allowed to connect
75 tinc bar set ExperimentalProtocol no
77 create_script foo subnet-up
79 wait_script foo subnet-up
81 create_script bar subnet-up
83 wait_script bar subnet-up
85 # There is no reliable way to wait for 'not connecting'.