Add posibilities to set tunnel_csum in ovs agent

Change-Id: I9cbbe555454159735c5327c66d99e379cf9a4cfc
Partial-Bug: 1794268
This commit is contained in:
Kamil Sambor 2018-09-25 12:15:45 +02:00
parent 5948a6bbeb
commit 2892f6b0f4
3 changed files with 13 additions and 0 deletions

View File

@ -145,6 +145,11 @@
# changes. (boolean value)
# Defaults to $::os_service_default
#
# [*tunnel_csum*]
# (optional) Set or un-set the tunnel header checksum on
# outgoing IP packet carrying GRE/VXLAN tunnel.
# Defaults to $::os_service_default
#
# DEPRECATED
#
# [*of_interface*]
@ -178,6 +183,7 @@ class neutron::agents::ml2::ovs (
$enable_dpdk = false,
$enable_security_group = $::os_service_default,
$minimize_polling = $::os_service_default,
$tunnel_csum = $::os_service_default,
# DEPRECATED
$of_interface = undef,
) {
@ -271,6 +277,7 @@ class neutron::agents::ml2::ovs (
'agent/drop_flows_on_start': value => $drop_flows_on_start;
'agent/extensions': value => join(any2array($extensions), ',');
'agent/minimize_polling': value => $minimize_polling;
'agent/tunnel_csum': value => $tunnel_csum;
'ovs/integration_bridge': value => $integration_bridge;
'ovs/datapath_type': value => $datapath_type;
'ovs/vhostuser_socket_dir': value => $vhostuser_socket_dir;

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds 'neutron::agents::ml2::ovs::tunnel_csum' Set or un-set the tunnel header checksum on
outgoing IP packet carrying GRE/VXLAN tunnel in ovs agent.

View File

@ -46,6 +46,7 @@ describe 'neutron::agents::ml2::ovs' do
is_expected.to contain_neutron_agent_ovs('agent/drop_flows_on_start').with_value(p[:drop_flows_on_start])
is_expected.to contain_neutron_agent_ovs('agent/extensions').with_value(['<SERVICE DEFAULT>'])
is_expected.to contain_neutron_agent_ovs('agent/minimize_polling').with_value(['<SERVICE DEFAULT>'])
is_expected.to contain_neutron_agent_ovs('agent/tunnel_csum').with_value(['<SERVICE DEFAULT>'])
is_expected.to contain_neutron_agent_ovs('ovs/datapath_type').with_value(['<SERVICE DEFAULT>'])
is_expected.to contain_neutron_agent_ovs('ovs/vhostuser_socket_dir').with_value(['<SERVICE DEFAULT>'])
is_expected.to contain_neutron_agent_ovs('ovs/ovsdb_interface').with_value(['<SERVICE DEFAULT>'])