Tim Lindberg | 390c2dc | 2013-04-11 00:48:53 -0700 | [diff] [blame] | 1 | #! /bin/bash |
2 | DIR=${HOME}/ONOS | ||||
3 | $DIR/scripts/all-linkup-hw.sh | ||||
4 | $DIR/web/delete_flow.py 201 300 | ||||
5 | $DIR/web/clean_flow.py 201 300 | ||||
6 | $DIR/web/add_flow.py -m onos -f $DIR/web/flowdef_demo_start.txt | ||||
7 | onos stop 5 | ||||
8 | onos stop 7 | ||||
9 | for i in 1 2 3 4 6 8; do | ||||
10 | status=`onos status $i | grep instance | awk '{print $2}'` | ||||
11 | echo "onos $i status $status" | ||||
12 | if [ x$status == "x0" ]; then | ||||
13 | onos start $i | ||||
14 | fi | ||||
15 | done | ||||
16 | sleep 2 | ||||
17 | switch local |