Masayoshi Kobayashi | 1ef9ec0 | 2013-04-12 18:03:12 +0000 | [diff] [blame] | 1 | #! /bin/bash |
2 | basename=$ONOS_CLUSTER_BASENAME | ||||
3 | DIR=${HOME}/ONOS | ||||
4 | start=`date +"%s"` | ||||
5 | echo "bring up two nodes" | ||||
6 | ssh -i ~/.ssh/onlabkey.pem ${basename}5 'ONOS/start-onos.sh start' | ||||
7 | ssh -i ~/.ssh/onlabkey.pem ${basename}7 'ONOS/start-onos.sh start' | ||||
8 | sleep 2 | ||||
9 | echo "Adding more flows" | ||||
10 | $DIR/web/add_flow.py -m onos -f $DIR/web/flowdef_demo_add.txt | ||||
11 | endt=`date +"%s"` | ||||
12 | (( delta = endt -start )) | ||||
13 | echo "Scale Up Done: took $delta sec" | ||||
14 |