Ubuntu | c7027f9 | 2013-03-01 00:57:11 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | export CLUSTER=/home/masayosi/bin/hosts-3x3.txt |
| 3 | function cmd { |
| 4 | while [ 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 |
| 12 | done |
| 13 | } |
| 14 | |
| 15 | dsh -w onos9vpc,onos10vpc 'ONOS/ctrl-add-ext.sh' |
| 16 | sleep 5 |
| 17 | |
| 18 | echo "start ONOS on onos11vpc" |
| 19 | read |
| 20 | ./start-onos.sh onos11vpc start |
| 21 | echo "done" |
| 22 | |
| 23 | echo "kill ONOS on onos9" |
| 24 | read |
| 25 | ./start-onos.sh onos9vpc stop |
| 26 | echo "done" |
| 27 | |
| 28 | echo "kill ONOS on onos11" |
| 29 | read |
| 30 | dsh -w onos11vpc 'ONOS/ctrl-add-ext.sh' |
| 31 | sleep 1 |
| 32 | ./start-onos.sh onos11vpc stop |
| 33 | echo "done" |
| 34 | |
| 35 | echo "bring back ONOS on onos9 and onos11" |
| 36 | read |
| 37 | ./start-onos.sh 'onos9vpc,onos11vpc' start |
| 38 | echo "done" |
| 39 | |
| 40 | echo "kill ONOS on onos10" |
| 41 | read |
| 42 | ./start-onos.sh onos10vpc stop |
| 43 | echo "done" |