Configure the OVS datapath type with devstack.
This feature provides the user with a means of easily configuring the required Openvswitch datapath type. (Netdev, dpdk, etc) Define the OVS_DATAPATH_TYPE variable in the devstack configuration file local.conf. This feature enables Intel(R) DPDK vSwitch and netdev DPDK vhost. Implements blueprint config-ovs-datapath-type Change-Id: I5698720960b1ac532c790d3e5735c5cef36d5e3d
This commit is contained in:
parent
1469a04f18
commit
c83cc75e61
@ -7,6 +7,7 @@ set +o xtrace
|
||||
|
||||
OVS_BRIDGE=${OVS_BRIDGE:-br-int}
|
||||
PUBLIC_BRIDGE=${PUBLIC_BRIDGE:-br-ex}
|
||||
OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-""}
|
||||
|
||||
function is_neutron_ovs_base_plugin {
|
||||
# Yes, we use OVS.
|
||||
@ -17,6 +18,9 @@ function _neutron_ovs_base_setup_bridge {
|
||||
local bridge=$1
|
||||
neutron-ovs-cleanup
|
||||
sudo ovs-vsctl --no-wait -- --may-exist add-br $bridge
|
||||
if [[ $OVS_DATAPATH_TYPE != "" ]]; then
|
||||
sudo ovs-vsctl set Bridge $bridge datapath_type=${OVS_DATAPATH_TYPE}
|
||||
fi
|
||||
sudo ovs-vsctl --no-wait br-set-external-id $bridge bridge-id $bridge
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user