blob: ca86f7ebe800a316a55fa5d7b0bad872e6b88683 [file] [log] [blame]
Masayoshi Kobayashi1ec0c6f2013-04-09 05:35:31 +00001#! /bin/bash
Masayoshi Kobayashi972b8462013-06-21 15:46:38 -07002. `dirname $0`/func.sh
Masayoshi Kobayashi1ec0c6f2013-04-09 05:35:31 +00003
4onos stop
5cassandra cleandb
6cassandra stop
7zk stop
8
9zk start
10cassandra start
11cassandra cleandb
12db_status=`cassandra checkdb |grep OK | wc -l`
13if [ $db_status != 1 ];then
14 echo $db_status
15 echo "Cassandra DB was screwed up. Need DB key drop"
16 exit
17fi
18onos start
19switch local
20#dsh -g $basename 'cd ONOS; ./ctrl-local.sh'