blob: e6cabaeb140f26a4d31fe122337b7e6e312f7f39 [file] [log] [blame]
Masayoshi Kobayashi1ef9ec02013-04-12 18:03:12 +00001#! /bin/bash
2basename=$ONOS_CLUSTER_BASENAME
3DIR=${HOME}/ONOS
Masayoshi Kobayashibc477de2013-04-12 18:09:37 +00004tstart=`date +"%s"`
Masayoshi Kobayashi1ef9ec02013-04-12 18:03:12 +00005echo "All Link Up"
6$DIR/scripts/all-linkup.sh
7echo "Delete Flows"
8$DIR/web/delete_flow.py 201 300
Masayoshi Kobayashi1ef9ec02013-04-12 18:03:12 +00009echo "Adding Flows"
10$DIR/web/add_flow.py -m onos -f $DIR/web/flowdef_demo_start.txt
11ssh -i ~/.ssh/onlabkey.pem ${basename}5 'ONOS/start-onos.sh stop'
12ssh -i ~/.ssh/onlabkey.pem ${basename}7 'ONOS/start-onos.sh stop'
13for i in 1 2 3 4 6 8; do
14 ssh -i ~/.ssh/onlabkey.pem ${basename}$i 'ONOS/start-onos.sh startifdown'
15done
16sleep 2
17for i in 1 2 3 4 5 6 7 8; do
18 ssh -i ~/.ssh/onlabkey.pem ${basename}$i 'cd ONOS/scripts; ./ctrl-local.sh'
19done
Masayoshi Kobayashibc477de2013-04-12 18:09:37 +000020tend=`date +"%s"`
21(( delta = tend - tstart ))
Masayoshi Kobayashi1ef9ec02013-04-12 18:03:12 +000022echo "Demo Reset Done: took $delta sec"