Merge "Add devstack setup_vxlan_network()"

This commit is contained in:
Jenkins 2016-11-28 11:25:04 +00:00 committed by Gerrit Code Review
commit 24bc4cbd7a
2 changed files with 12 additions and 0 deletions

View File

@ -1621,6 +1621,15 @@ function get_ironic_node_prefix {
echo $node_prefix
}
function setup_vxlan_network {
sudo ovs-vsctl add-port $IRONIC_VM_NETWORK_BRIDGE phy-brbm-vxlan
sudo ovs-vsctl add-port br_ironic_vxlan phy-vxlan-brbm
sudo ovs-vsctl set interface phy-brbm-vxlan type=patch
sudo ovs-vsctl set interface phy-vxlan-brbm type=patch
sudo ovs-vsctl set interface phy-vxlan-brbm options:peer=phy-brbm-vxlan
sudo ovs-vsctl set interface phy-brbm-vxlan options:peer=phy-vxlan-brbm
}
# Restore xtrace + pipefail
$_XTRACE_IRONIC
$_PIPEFAIL_IRONIC

View File

@ -46,6 +46,9 @@ if is_service_enabled ir-api ir-cond; then
echo_summary "Configuring Ironic networks"
configure_ironic_networks
fi
if [[ "$HOST_TOPOLOGY" == 'multinode' ]]; then
setup_vxlan_network
fi
# Start the ironic API and ironic taskmgr components
echo_summary "Starting Ironic"