summaryrefslogtreecommitdiff
path: root/root-topology/test/create-test-root-topology.sh
diff options
context:
space:
mode:
Diffstat (limited to 'root-topology/test/create-test-root-topology.sh')
-rwxr-xr-xroot-topology/test/create-test-root-topology.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/root-topology/test/create-test-root-topology.sh b/root-topology/test/create-test-root-topology.sh
index 86c0577c..cb628729 100755
--- a/root-topology/test/create-test-root-topology.sh
+++ b/root-topology/test/create-test-root-topology.sh
@@ -5,18 +5,18 @@ if [ ! -e ../mktopology ]; then
exit 1
fi
-echo 'Populating supernodes/* with all Docker test-supernode-* container IPs and identities...'
+echo 'Populating rootservers/* with all Docker test-rootserver-* container IPs and identities...'
-rm -rf supernodes
-mkdir supernodes
+rm -rf rootservers
+mkdir rootservers
-for cid in `docker ps -f 'name=test-supernode-*' -q`; do
+for cid in `docker ps -f 'name=test-rootserver-*' -q`; do
id=`docker exec $cid cat /var/lib/zerotier-one/identity.secret | cut -d : -f 1-3`
ztaddr=`echo $id | cut -d : -f 1`
ip=`docker exec $cid ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'`
echo $cid $ztaddr $id $ip
- echo "id=$id" >supernodes/$ztaddr
- echo "udp=$ip/9993" >>supernodes/$ztaddr
+ echo "id=$id" >rootservers/$ztaddr
+ echo "udp=$ip/9993" >>rootservers/$ztaddr
done
echo 'Creating test-root-topology...'