aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-09-12 14:11:05 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-09-12 14:17:06 +0800
commit886145f77ff316bd929758d8795d1d0ee9cd011f (patch)
tree8eb6f10737c2e3ecda02c0a5bc10e7a1ff6ec76a
parent0d057d8e10fd5e29156516196ffec60ecb115087 (diff)
Auto start bridge on jumphost
Set libvirt bridges to auto start on jump host to avoid network failure when reboot. Change-Id: Ic2fcbe2aa6ac512c25589d49ce10882d2e84ddeb Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
-rwxr-xr-xdeploy/network.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/network.sh b/deploy/network.sh
index 218dc1d6..698771b3 100755
--- a/deploy/network.sh
+++ b/deploy/network.sh
@@ -29,6 +29,7 @@ function setup_bridge_net()
sudo virsh net-define $WORK_DIR/network/$net_name.xml
sudo virsh net-start $net_name
+ sudo virsh net-autostart $net_name
}
function recover_bridge_net()
@@ -83,6 +84,7 @@ function setup_bridge_external()
sudo virsh net-define $WORK_DIR/network/external.xml
sudo virsh net-start external
+ sudo virsh net-autostart external
python $COMPASS_DIR/deploy/setup_vnic.py
}
@@ -115,6 +117,7 @@ function setup_nat_net() {
sudo virsh net-define $WORK_DIR/network/$net_name.xml
sudo virsh net-start $net_name
+ sudo virsh net-autostart $net_name
}
function recover_nat_net() {