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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user