blob: e58e8026952a524ca0b3b6a0ef9c1ab5678b2a1b [file] [log] [blame]
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +00001#! /bin/bash
Masayoshi Kobayashi0ab03da2013-03-26 00:43:02 +00002. $HOME/bin/func.sh
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +00003
4onos stop
5cassandra cleandb
6cassandra stop
7zk stop
8
9zk start
10cassandra start
11cassandra cleandb
Masayoshi Kobayashibd3d00e2013-04-03 22:59:57 +000012db_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
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +000018onos start
Masayoshi Kobayashie4a551d2013-04-07 04:56:09 +000019switch local
20#dsh -g $basename 'cd ONOS; ./ctrl-local.sh'