blob: 65a2ff1f8e972cf7532ed92a56687a14aa43eaf4 [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
9$DIR/web/clear_flow.py 201 300
10echo "Adding Flows"
11$DIR/web/add_flow.py -m onos -f $DIR/web/flowdef_demo_start.txt
12ssh -i ~/.ssh/onlabkey.pem ${basename}5 'ONOS/start-onos.sh stop'
13ssh -i ~/.ssh/onlabkey.pem ${basename}7 'ONOS/start-onos.sh stop'
14for i in 1 2 3 4 6 8; do
15 ssh -i ~/.ssh/onlabkey.pem ${basename}$i 'ONOS/start-onos.sh startifdown'
16done
17sleep 2
18for i in 1 2 3 4 5 6 7 8; do
19 ssh -i ~/.ssh/onlabkey.pem ${basename}$i 'cd ONOS/scripts; ./ctrl-local.sh'
20done
Masayoshi Kobayashibc477de2013-04-12 18:09:37 +000021tend=`date +"%s"`
22(( delta = tend - tstart ))
Masayoshi Kobayashi1ef9ec02013-04-12 18:03:12 +000023echo "Demo Reset Done: took $delta sec"