summaryrefslogtreecommitdiffstats
path: root/deploy/network.sh
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-01-12 03:21:46 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-12 03:21:46 +0000
commit7dcf28a3095568291f3f8d62a9dabcd23c762977 (patch)
treef1f53e4bef7f09607ae21dee12c6f3b8ee0905ad /deploy/network.sh
parent975480478b0b207656881232470461053694c609 (diff)
parent08f363f676a5c978de0c5c671576140413d806f5 (diff)
Merge "Fix multi-nics BM deploy network unreachable issue"
Diffstat (limited to 'deploy/network.sh')
-rwxr-xr-xdeploy/network.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/network.sh b/deploy/network.sh
index 97d71880..558d690c 100755
--- a/deploy/network.sh
+++ b/deploy/network.sh
@@ -59,6 +59,13 @@ function save_network_info()
sudo ip addr add $ip_info dev br-external
sudo ip route add $route_info dev br-external
fi
+
+ # Configure OS_MGMT_NIC when openstack external network and mgmt network use different nics
+ if [[ x"$OS_MGMT_NIC" != "x" ]]; then
+ sudo ovs-vsctl --may-exist add-port br-external $OS_MGMT_NIC
+ sudo ip link set $OS_MGMT_NIC up
+ sudo ip addr flush $OS_MGMT_NIC
+ fi
}
function setup_bridge_external()