blob: a835dafaa8dbbfc28fcd2a08f801c2372a213b4c [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
15dsh -w onos9vpc,onos10vpc 'ONOS/ctrl-add-ext.sh'
16sleep 5
17
18echo "start ONOS on onos11vpc"
19read
20./start-onos.sh onos11vpc start
21echo "done"
22
23echo "kill ONOS on onos9"
24read
25./start-onos.sh onos9vpc stop
26echo "done"
27
28echo "kill ONOS on onos11"
29read
30dsh -w onos11vpc 'ONOS/ctrl-add-ext.sh'
31sleep 1
32./start-onos.sh onos11vpc stop
33echo "done"
34
35echo "bring back ONOS on onos9 and onos11"
36read
37./start-onos.sh 'onos9vpc,onos11vpc' start
38echo "done"
39
40echo "kill ONOS on onos10"
41read
42./start-onos.sh onos10vpc stop
43echo "done"