blob: e58e8026952a524ca0b3b6a0ef9c1ab5678b2a1b [file] [log] [blame]
Masayoshi Kobayashi1ec0c6f2013-04-09 05:35:31 +00001#! /bin/bash
2. $HOME/bin/func.sh
3
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'