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

... instead of leaving the configuration unmanaged.

Change-Id: Ifa7d6efd52c812cc9bfb073fd03dc01a6481cd38
This commit is contained in:
Takashi Kajinami 2022-03-24 14:31:50 +09:00
parent ae037fb692
commit 1545c55ca5
4 changed files with 16 additions and 2 deletions

View File

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

View File

@ -78,6 +78,11 @@ class vswitch::ovs(
value => 0,
wait => false,
}
} else {
vs_config { 'other_config:emc-insert-inv-prob':
ensure => absent,
wait => false,
}
}
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(
: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(
:value => nil, :wait => true,
)

View File

@ -28,7 +28,9 @@ describe 'vswitch::ovs' do
end
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
it 'clears vlan-limit option' do