Merge "Ensure other_config:emc-insert-inv-prob is unset"

This commit is contained in:
Zuul 2022-03-25 18:28:27 +00:00 committed by Gerrit Code Review
commit d57362f6cc
4 changed files with 16 additions and 2 deletions

View File

@ -141,6 +141,11 @@ class vswitch::dpdk (
value => 0, value => 0,
wait => false, wait => false,
} }
} else {
vs_config { 'other_config:emc-insert-inv-prob':
ensure => absent,
wait => false,
}
} }
if is_service_default($vlan_limit) { if is_service_default($vlan_limit) {

View File

@ -77,6 +77,11 @@ class vswitch::ovs(
value => 0, value => 0,
wait => false, wait => false,
} }
} else {
vs_config { 'other_config:emc-insert-inv-prob':
ensure => absent,
wait => false,
}
} }
if is_service_default($vlan_limit) { if is_service_default($vlan_limit) {

View File

@ -53,7 +53,9 @@ describe 'vswitch::dpdk' do
is_expected.to contain_vs_config('other_config:hw-offload').with( is_expected.to contain_vs_config('other_config:hw-offload').with(
:ensure => 'absent', :restart => true, :wait => true, :ensure => 'absent', :restart => true, :wait => true,
) )
is_expected.to_not contain_vs_config('other_config:emc-insert-inv-prob') is_expected.to contain_vs_config('other_config:emc-insert-inv-prob').with(
:ensure => 'absent', :wait => false
)
is_expected.to contain_vs_config('other_config:vlan-limit').with( is_expected.to contain_vs_config('other_config:vlan-limit').with(
:value => nil, :wait => true, :value => nil, :wait => true,
) )

View File

@ -28,7 +28,9 @@ describe 'vswitch::ovs' do
end end
it 'configures disable_emc option to false' do it 'configures disable_emc option to false' do
is_expected.to_not contain_vs_config('other_config:emc-insert-inv-prob') is_expected.to contain_vs_config('other_config:emc-insert-inv-prob').with(
:ensure => 'absent', :wait => false
)
end end
it 'clears vlan-limit option' do it 'clears vlan-limit option' do