blob: c5136185f6efb1b676ebc59c3ee618b1476dfa91 [file] [log] [blame]
Masayoshi Kobayashi7f02a802013-04-03 21:40:13 +00001#! /bin/sh
2basename=$ONOS_CLUSTER_BASENAME
3
4fdef="flowdef_8node_42.txt"
5echo "all links up"
6dsh -w ${basename}1 "cd ONOS/scripts; ./all-linkup.sh"
7echo "clean up flow"
8dsh -w ${basename}1 "cd ONOS/web; ./delete_flow.py 1 100"
9dsh -w ${basename}1 "cd ONOS/web; ./clear_flow.py 1 100"
10sleep 1
11dsh -w ${basename}1 "cd ONOS/web; ./get_flow.py all"
12dsh "cd ONOS/scripts; ./delflow.sh"
13echo "checkup status"
14./check_status.py
15read -p "hit anykey> "
16
17echo "install pre-set flows"
18dsh -w ${basename}1 "cd ONOS/web; ./add_flow.py -m onos -f $fdef"
19sleep 3
20echo "check"
21dsh -w ${basename}1 "cd ONOS/web; ./pingall.py $fdef"
22
23ports=`dsh -w ${basename}1 "cd ONOS/scripts; ./listports.sh" | awk '{print $2}' |grep -v tap`
24
25for p in $ports; do
26 echo "port $p down"
27 read -p "hit anykey> "
28 dsh -w ${basename}1 "sudo ifconfig $p down"
29 echo "wait 3 sec"
30 sleep 3
31 dsh -w ${basename}1 "cd ONOS/web; ./pingall.py $fdef"
32 echo "port $p up"
33 dsh -w ${basename}1 "sudo ifconfig $p up"
34 echo "wait 3 sec"
35 sleep 3
36 dsh -w ${basename}1 "cd ONOS/web; ./pingall.py $fdef"
37done