aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2016-02-04 04:35:49 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-02-04 04:35:49 +0000
commit5d6224060497294aeb89a6fa23072130b25093ec (patch)
tree03d9707cb816d96c7f86ab09963fcb7dea1dd3e9 /deploy
parent85ac2f7c67b586b5d0f3be477e37ed01bb040e9a (diff)
parenta31b2d15e554deaa9ce22bc501531e5f48812bd9 (diff)
Merge "bugfix: make sure ovs started"
Diffstat (limited to 'deploy')
-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}