blob: 80c3aa4959663d5babf004fa6906b47ce80ca146 [file] [log] [blame]
Ubuntuc7027f92013-03-01 00:57:11 +00001#! /bin/bash
2export CLUSTER=/home/masayosi/bin/hosts-3x3.txt
3function cmd {
4while [ 1 ] ; do
5 $@
6 echo "Continue? [y/n]:"
7 read -t 2 value
8 if [ x$value == "xy" ]; then
9 break;
10 fi
11 sleep 1
12done
13}
14
15./start-onos.sh 'onos9vpc,onos10vpc,onos11vpc,onos12vpc' stop
16./start-onos.sh 'onos9vpc,onos10vpc,onos11vpc,onos12vpc' status
17#./start-cassandra.sh 'onos9vpc' start
18#sleep 2
19#./start-cassandra.sh 'onos10vpc,onos11vpc,onos12vpc' start
20
21dsh -w onos9vpc 'cd ONOS;./clean-cassandra.sh'
22cmd ./start-cassandra.sh onos9vpc status
23sleep 5
24echo "Set mininet local"
25dsh -g onos 'ONOS/ctrl-none.sh'
26echo "Start ONOS on 9, 10 and 12"
27./start-onos.sh 'onos9vpc' start
28sleep 1
29./start-onos.sh 'onos10vpc' start
30sleep 1
31./start-onos.sh 'onos12vpc' start
32while [ 1 ] ; do
33 ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' status
34 echo "Continue? [y/s/n]:"
35 read -t 2 value
36 if [ x$value == "xy" ]; then
37 break;
38 elif [ x$value == "xs" ]; then
39 ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' start
40 fi
41 sleep 1
42done
43sleep 2
44dsh -g onos 'ONOS/ctrl-local.sh'
45#sleep 2
46#./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' start
47while [ 1 ] ; do
48 ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' status
49 echo "Continue? [y/s/n]:"
50 read -t 2 value
51 if [ x$value == "xy" ]; then
52 break;
53 elif [ x$value == "xs" ]; then
54 ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' start
55 fi
56 sleep 1
57done
58#cmd dsh -w onos9vpc,onos10vpc 'ONOS/ctrl-add-ext.sh'
59#while [ 1 ] ; do
60# ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' status
61# echo "Continue? [y/n]:"
62# read -t 2 value
63# if [ x$value == "xy" ]; then
64# break;
65# fi
66# sleep 1
67#done
68#dsh -w onos9vpc,onos10vpc 'ONOS/ctrl-add-ext.sh'
69#sleep 1