blob: b7307c0d7cba35219202d2781f9fbaef762e70e3 [file] [log] [blame]
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +00001#! /bin/bash
2USERNAME=ubuntu
3CASSANDRA_DIR='/home/ubuntu/apache-cassandra-1.1.4'
4ZK_DIR='/home/ubuntu/zookeeper-3.4.5'
5ZK_LIB='/var/lib/zookeeper'
6CASSANDRA_LIB='/var/lib/cassandra'
7
Masayoshi Kobayashi4de8d122013-04-08 19:19:47 +00008if [ x$ONOS_CLUSTER_BASENAME == "x" -o x$ONOS_CLUSTER_NR_NODES == "x" ]; then
9 echo "set environment variable ONOS_CLUSTER_BASENAME and ONOS_CLUSTER_NR_NODES"
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +000010 exit
11fi
12
Masayoshi Kobayashi4de8d122013-04-08 19:19:47 +000013basename=$ONOS_CLUSTER_BASENAME
14NR_NODES=$ONOS_CLUSTER_NR_NODES
15
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +000016dsh -g $basename 'uname -a'
17
18for n in `seq 1 $NR_NODES`; do
19 pcp -w ${basename}${n} ${basename}${n}/onsdemo.py 'ONOS/test-network/mininet'
20 pcp -w ${basename}${n} ${basename}${n}/tunnel_onsdemo.sh 'ONOS/test-network/mininet'
21done
22dsh -g $basename 'chmod 755 ONOS/test-network/mininet/tunnel_onsdemo.sh'
23dsh -g $basename 'chmod 755 ONOS/test-network/mininet/onsdemo.py'