diff options
author | Justin chi <chigang@huawei.com> | 2017-01-12 03:21:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-12 03:21:46 +0000 |
commit | 7dcf28a3095568291f3f8d62a9dabcd23c762977 (patch) | |
tree | f1f53e4bef7f09607ae21dee12c6f3b8ee0905ad /deploy | |
parent | 975480478b0b207656881232470461053694c609 (diff) | |
parent | 08f363f676a5c978de0c5c671576140413d806f5 (diff) |
Merge "Fix multi-nics BM deploy network unreachable issue"
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy/network.sh | 7 |
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() |