summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2016-02-03 11:17:53 +0800
committercarey.xu <carey.xuhan@huawei.com>2016-02-03 11:17:53 +0800
commita31b2d15e554deaa9ce22bc501531e5f48812bd9 (patch)
tree141671dcd9c40232f3568f4234ec63f396664fa3
parent1f6a0b442d6081811f90557cb7d56b16e211079d (diff)
bugfix: make sure ovs started
JIRA: COMPASS-302 Change-Id: I4df1a1fb2879aa512f4e1e2fc3517b0a273bfda8 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
-rwxr-xr-xdeploy/prepare.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh
index 89be0e98..60657a0c 100755
--- a/deploy/prepare.sh
+++ b/deploy/prepare.sh
@@ -42,6 +42,9 @@ function prepare_env() {
sudo apt-get install -y --force-yes git python-dev
sudo apt-get install -y --force-yes libxslt-dev libxml2-dev libvirt-dev build-essential qemu-utils qemu-kvm libvirt-bin virtinst libmysqld-dev
sudo service libvirt-bin restart
+ if sudo service openvswitch-switch status|grep stop; then
+ sudo service openvswitch-switch start
+ fi
# prepare work dir
rm -rf $WORK_DIR/{installer,vm,network,iso}