From 886145f77ff316bd929758d8795d1d0ee9cd011f Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Tue, 12 Sep 2017 14:11:05 +0800 Subject: 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 --- deploy/network.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'deploy') 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() { -- cgit 1.2.3-korg