diff options
author | Kees Bos <k.bos@capitar.com> | 2015-05-06 12:05:20 +0200 |
---|---|---|
committer | Kees Bos <k.bos@capitar.com> | 2015-05-06 12:05:20 +0200 |
commit | a425bbc67301bf486fe5b0aba8adb59ae791403e (patch) | |
tree | 460b6c5a5c2ed852903fac2a9703c6f06534f79f /root-topology/test | |
parent | 845955dea53035e8472059ff03feca9f47c0d5fa (diff) | |
download | infinitytier-a425bbc67301bf486fe5b0aba8adb59ae791403e.tar.gz infinitytier-a425bbc67301bf486fe5b0aba8adb59ae791403e.zip |
Renamed supernode to rootserver
Diffstat (limited to 'root-topology/test')
-rw-r--r-- | root-topology/test/README.md | 2 | ||||
-rwxr-xr-x | root-topology/test/create-test-root-topology.sh | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/root-topology/test/README.md b/root-topology/test/README.md index 332f8297..ae702243 100644 --- a/root-topology/test/README.md +++ b/root-topology/test/README.md @@ -1,6 +1,6 @@ Test Root Topology Script ====== -This builds a test-root-topology from any number of running test-supernode-# Docker containers. This can then be used with the (undocumented) -T (override root topology) option to run test networks under Docker. +This builds a test-root-topology from any number of running test-rootserver-# Docker containers. This can then be used with the (undocumented) -T (override root topology) option to run test networks under Docker. Once you have a local Docker test network running you can use iptables rules to simulate a variety of network pathologies, or you can just use it to test any new changes to the protocol or node behavior at some limited scale. 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...' |