Propagate OVS_DATAPATH_TYPE to ml2_conf.ini
If OVS_DATAPATH_TYPE is configured it should be visible in ML2 config Changing OVS_DATAPATH_TYPE default value to 'system' from '' Closes-Bug: 1499029 Change-Id: I88e7d2554e8a1d6dcfea71fc1fb8e9fb2491d8b7
This commit is contained in:
parent
b6249dc2ad
commit
c1605550d9
@ -105,6 +105,7 @@ function neutron_plugin_configure_plugin_agent {
|
||||
iniset "/$Q_PLUGIN_CONF_FILE.domU" agent root_helper "$Q_RR_COMMAND"
|
||||
fi
|
||||
iniset /$Q_PLUGIN_CONF_FILE agent tunnel_types $Q_TUNNEL_TYPES
|
||||
iniset /$Q_PLUGIN_CONF_FILE ovs datapath_type $OVS_DATAPATH_TYPE
|
||||
}
|
||||
|
||||
function neutron_plugin_setup_interface_driver {
|
||||
|
@ -8,7 +8,8 @@ OVSB_XTRACE=$(set +o | grep xtrace)
|
||||
set +o xtrace
|
||||
|
||||
OVS_BRIDGE=${OVS_BRIDGE:-br-int}
|
||||
OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-""}
|
||||
# OVS recognize default 'system' datapath or 'netdev' for userspace datapath
|
||||
OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-system}
|
||||
OVS_TUNNEL_BRIDGE=${OVS_TUNNEL_BRIDGE:-br-tun}
|
||||
|
||||
function is_neutron_ovs_base_plugin {
|
||||
@ -20,7 +21,7 @@ function _neutron_ovs_base_add_bridge {
|
||||
local bridge=$1
|
||||
local addbr_cmd="sudo ovs-vsctl --no-wait -- --may-exist add-br $bridge"
|
||||
|
||||
if [ "$OVS_DATAPATH_TYPE" != "" ] ; then
|
||||
if [ "$OVS_DATAPATH_TYPE" != "system" ] ; then
|
||||
addbr_cmd="$addbr_cmd -- set Bridge $bridge datapath_type=${OVS_DATAPATH_TYPE}"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user