Browse code

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

James Chapman authored on 2014/06/12 03:29:26
Showing 1 changed files
... ...
@@ -7,6 +7,7 @@ set +o xtrace
7 7
 
8 8
 OVS_BRIDGE=${OVS_BRIDGE:-br-int}
9 9
 PUBLIC_BRIDGE=${PUBLIC_BRIDGE:-br-ex}
10
+OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-""}
10 11
 
11 12
 function is_neutron_ovs_base_plugin {
12 13
     # Yes, we use OVS.
... ...
@@ -17,6 +18,9 @@ function _neutron_ovs_base_setup_bridge {
17 17
     local bridge=$1
18 18
     neutron-ovs-cleanup
19 19
     sudo ovs-vsctl --no-wait -- --may-exist add-br $bridge
20
+    if [[ $OVS_DATAPATH_TYPE != "" ]]; then
21
+        sudo ovs-vsctl set Bridge $bridge datapath_type=${OVS_DATAPATH_TYPE}
22
+    fi
20 23
     sudo ovs-vsctl --no-wait br-set-external-id $bridge bridge-id $bridge
21 24
 }
22 25