blob: bdfb6d83140fe2652a5f1a69c922b0dac35734db [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
8if [ $# == 2 ]; then
9 NR_NODES=$1
10 basename=$2
11else
12 echo "$0 nr_nodes basename"
13 exit
14fi
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'