23 # Exchange host config files
25 $tinc $c1 export | $tinc $c2 exchange | $tinc $c1 import
26 $tinc $c2 add ConnectTo foo
30 $tinc $c2 set ExperimentalProtocol no
31 $tinc $c1 del bar.Ed25519PublicKey
32 $tinc $c2 del foo.Ed25519PublicKey
39 test `$tinc $c1 dump reachable nodes | wc -l` = 2
40 test `$tinc $c2 dump reachable nodes | wc -l` = 2
45 test -z "`$tinc $c1 get bar.Ed25519PublicKey`"
46 test -z "`$tinc $c2 get foo.Ed25519PublicKey`"
48 # Foo 1.1, bar upgrades to 1.1
50 $tinc $c2 del ExperimentalProtocol
57 test `$tinc $c1 dump reachable nodes | wc -l` = 2
58 test `$tinc $c2 dump reachable nodes | wc -l` = 2
63 test -n "`$tinc $c1 get bar.Ed25519PublicKey`"
64 test -n "`$tinc $c2 get foo.Ed25519PublicKey`"
66 # Bar downgrades, must no longer be allowed to connect
68 $tinc $c2 set ExperimentalProtocol no
75 test `$tinc $c1 dump reachable nodes | wc -l` = 1
76 test `$tinc $c2 dump reachable nodes | wc -l` = 1