summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()