end
iptables_flush_all_tables
ip6tables_flush_all_tables
+ if os[:family] == 'debian' && os[:release] == '10'
+ # in order to avoid this stderr: Warning: ip6tables-legacy tables present, use ip6tables-legacy-save to see them\n"
+ run_shell('update-alternatives --set iptables /usr/sbin/iptables-legacy')
+ end
end
# --bytecode is only supported by operatingsystems using nftables (in general Linux kernel 3.13, RedHat 7 (and derivates) with 3.10)
before(:all) do
iptables_flush_all_tables
ip6tables_flush_all_tables
+ if os[:family] == 'debian' && os[:release] == '10'
+ # in order to avoid this stderr: Warning: ip6tables-legacy tables present, use ip6tables-legacy-save to see them\n"
+ run_shell('update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy')
+ end
end
describe 'standard attributes', unless: (os[:family] == 'redhat' && os[:release].start_with?('5', '6')) || (os[:family] == 'sles') do