summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-11-22 11:55:31 +0800
committerQiLiang <liangqi1@huawei.com>2016-11-22 11:55:31 +0800
commit3bff61db1bfe39e2833d35a0b8f30af3f7a66e0c (patch)
tree7129f53a3394cd7817901ede7c5e9a93ce8d5842
parentb15421ac53b8f57011613e29505cd8c0275b5066 (diff)
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 <liangqi1@huawei.com>
-rwxr-xr-xdeploy/network.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/deploy/network.sh b/deploy/network.sh
index 6c678222..97d71880 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