blob: c5101a18c023eb47818126dca93f4a2047ddee7c [file] [log] [blame]
Tim Lindberg390c2dc2013-04-11 00:48:53 -07001#! /bin/bash
2DIR=${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
7onos stop 5
8onos stop 7
9for 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
15done
16sleep 2
17switch local