blob: 277d69bb3256d67922bff90af2ad91e6868c1694 [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
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +00006
Masayoshi Kobayashibd3d00e2013-04-03 22:59:57 +00007db_status=`cassandra checkdb |grep OK | wc -l`
8if [ $db_status != 1 ];then
9 echo $db_status
10 echo "Cassandra DB was screwed up. Need DB key drop"
11 exit
12fi
Masayoshi Kobayashif358ff52013-03-22 00:31:59 +000013onos start
Masayoshi Kobayashie4a551d2013-04-07 04:56:09 +000014switch local
15#dsh -g $basename 'cd ONOS; ./ctrl-local.sh'