Add devstack setup_vxlan_network()

This patch adds devstack: setup_vxlan_network() function.
With multinode topology br_ironic_vxlan dridge is created by devstack-gate
that provides VXLAN connectivity between VMs on primary and subnode.

Related-Bug: #1622653
Change-Id: I7461a8eaab138ea6ec1deb276cab00d20ce3c9f0
This commit is contained in:
Vasyl Saienko
2016-09-12 11:26:50 +03:00
parent 4cb95b7dc0
commit 5e50f3ad78
2 changed files with 12 additions and 0 deletions

View File

@@ -1604,6 +1604,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"