blob: e226c39b2fa04d091ce82ed4b1ba675cf181d6a2 [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
Masayoshi Kobayashi0ab03da2013-03-26 00:43:02 +000018dsh -g ${basename} 'cd ONOS/test-network/mininet; ./tunnel_onsdemo.sh start'
19dsh -g ${basename} 'cd ONOS/test-network/mininet; ./tunnel_onsdemo.sh start'
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +000020dsh -g ${basename} 'cd ONOS/test-network/mininet; sudo mn -c'
21dsh -g ${basename} 'cd ONOS/test-network/mininet; sudo ./onsdemo.py -n'