#sudo service openvswitch-switch start
# set the correct branch in devstack
-cd $DEVSTACK_HOME
+cd $DEVSTACK_HOME || exit
git fetch
git checkout -b ${BRANCH_NAME} -t ${TAG_NAME}
# distribution to deploy on the nodes, or will download it, and it will
# trigger vagrant or docker to build the cluster.
-# noqa ShellCheckBear
+# shellcheck disable=SC2039
SCRIPTS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$( cd "$SCRIPTS" && cd .. && pwd)"
setup_env() {
+ # shellcheck disable=SC1090
. $SCRIPTS/config.properties
export NUM_OF_NODES=$NUM_OF_NODES
echo "Cluster will be deployed using $ODL_VERSION."
setup_odl() {
env_banner
- cd $ROOT/opendaylight
+ cd $ROOT/opendaylight || exit
# for the OSX users, know that BSD-sed doesn't work the same as GNU-sed, hence this command won't work.
# see http://stackoverflow.com/a/27834828/6937994
spwan_vms() {
env_banner
- cd $ROOT
+ cd $ROOT || exit
vagrant destroy -f
vagrant up
}
# Shard configuration:
# see (configure-cluster-ipdetect.sh)[https://github.com/opendaylight/integration-distribution/blob/release/boron-sr2/distribution-karaf/src/main/assembly/bin/configure-cluster-ipdetect.sh]
-# noqa ShellCheckBear
+# shellcheck disable=SC2039
SCRIPTS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+# shellcheck disable=SC1090
. $SCRIPTS/config.properties
install_packages() {
}
start_odl() {
- cd $HOME/opendaylight
+ cd $HOME/opendaylight || exit
seed_nodes=""
for i in $(seq $NUM_OF_NODES)