From: QiLiang Date: Tue, 22 Nov 2016 03:55:31 +0000 (+0800) Subject: up INSTALL_NIC during installation X-Git-Tag: colorado.3.0~15^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F24843%2F1;p=compass4nfv.git up INSTALL_NIC during installation Some jumpserver's INSTALL_NIC is down during compass4nfv installation, this will cause pxe boot failure. So add auto up the INSTALL_NIC during installation. JIRA: - Change-Id: I109b45360edf03e575f00e88d4b2ce12c01b2869 Signed-off-by: QiLiang (cherry picked from commit 3bff61db1bfe39e2833d35a0b8f30af3f7a66e0c) --- diff --git a/deploy/network.sh b/deploy/network.sh index 46b8c023..b8bcd08b 100755 --- a/deploy/network.sh +++ b/deploy/network.sh @@ -17,6 +17,8 @@ function setup_bridge_net() net_name=$1 nic=$2 + sudo ifconfig $nic up + sudo virsh net-destroy $net_name sudo virsh net-undefine $net_name