Skip to content

Commit aac83b5

Browse files
Align @resource_list instances in providers
The @resource_list variable is almost impossible to reason about or check sync between v4 vs. v6 provider implementations - align them!
1 parent e7c9743 commit aac83b5

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

lib/puppet/provider/firewall/ip6tables.rb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -318,24 +318,24 @@ def self.iptables_save(*args)
318318
# (Note: on my CentOS 6.4 ip6tables-save returns -m frag on the place
319319
# I put it when calling the command. So compability with manual changes
320320
# not provided with current parser [georg.koester])
321-
@resource_list = [:table, :source, :destination, :iniface, :outiface, :physdev_in,
322-
:physdev_out, :physdev_is_bridged, :physdev_is_in, :physdev_is_out,
323-
:proto, :ishasmorefrags, :islastfrag, :isfirstfrag, :src_range, :dst_range,
324-
:tcp_flags, :uid, :gid, :mac_source, :sport, :dport, :port, :src_type,
325-
:dst_type, :socket, :pkttype, :ipsec_dir, :ipsec_policy, :state,
326-
:ctstate, :ctproto, :ctorigsrc, :ctorigdst, :ctreplsrc, :ctrepldst,
327-
:ctorigsrcport, :ctorigdstport, :ctreplsrcport, :ctrepldstport, :ctstatus, :ctexpire, :ctdir,
328-
:icmp, :hop_limit, :limit, :burst, :length, :recent, :rseconds, :reap,
329-
:rhitcount, :rttl, :rname, :mask, :rsource, :rdest, :ipset, :string, :string_hex, :string_algo,
330-
:string_from, :string_to, :jump,
331-
:nflog_group, :nflog_prefix, :nflog_range, :nflog_size, :nflog_threshold,
332-
:clamp_mss_to_pmtu, :gateway, :todest,
333-
:tosource, :toports, :checksum_fill, :log_level, :log_prefix, :log_uid, :log_tcp_sequence, :log_tcp_options, :log_ip_options, :random_fully,
334-
:reject, :set_mss, :set_dscp, :set_dscp_class, :mss, :queue_num, :queue_bypass,
335-
:set_mark, :match_mark, :connlimit_above, :connlimit_mask, :connmark, :time_start, :time_stop,
336-
:synproxy_sack_perm, :synproxy_timestamp, :synproxy_wscale, :synproxy_mss, :synproxy_ecn,
337-
:month_days, :week_days, :date_start, :date_stop, :time_contiguous, :kernel_timezone,
338-
:src_cc, :dst_cc, :hashlimit_upto, :hashlimit_above, :hashlimit_name, :hashlimit_burst,
339-
:hashlimit_mode, :hashlimit_srcmask, :hashlimit_dstmask, :hashlimit_htable_size,
340-
:hashlimit_htable_max, :hashlimit_htable_expire, :hashlimit_htable_gcinterval, :bytecode, :zone, :helper, :rpfilter, :condition, :name, :notrack]
321+
@resource_list = [
322+
:table, :source, :destination, :iniface, :outiface,
323+
:physdev_in, :physdev_out, :physdev_is_bridged, :physdev_is_in, :physdev_is_out,
324+
:proto, :ishasmorefrags, :islastfrag, :isfirstfrag,
325+
:src_range, :dst_range, :tcp_flags, :uid, :gid, :mac_source, :sport, :dport, :port,
326+
:src_type, :dst_type, :socket, :pkttype, :ipsec_dir, :ipsec_policy,
327+
:state, :ctstate, :ctproto, :ctorigsrc, :ctorigdst, :ctreplsrc, :ctrepldst,
328+
:ctorigsrcport, :ctorigdstport, :ctreplsrcport, :ctrepldstport, :ctstatus, :ctexpire, :ctdir,
329+
:icmp, :hop_limit, :limit, :burst, :length, :recent, :rseconds, :reap,
330+
:rhitcount, :rttl, :rname, :mask, :rsource, :rdest, :ipset, :string, :string_hex, :string_algo,
331+
:string_from, :string_to, :jump, :queue_num, :queue_bypass,
332+
:nflog_group, :nflog_prefix, :nflog_range, :nflog_size, :nflog_threshold, :clamp_mss_to_pmtu, :gateway,
333+
:set_mss, :set_dscp, :set_dscp_class, :todest, :tosource, :toports, :checksum_fill, :random_fully, :log_prefix,
334+
:log_level, :log_uid, :log_tcp_sequence, :log_tcp_options, :log_ip_options, :reject, :set_mark, :match_mark, :mss, :connlimit_above, :connlimit_mask, :connmark, :time_start, :time_stop,
335+
:synproxy_sack_perm, :synproxy_timestamp, :synproxy_wscale, :synproxy_mss, :synproxy_ecn,
336+
:month_days, :week_days, :date_start, :date_stop, :time_contiguous, :kernel_timezone,
337+
:src_cc, :dst_cc, :hashlimit_upto, :hashlimit_above, :hashlimit_name, :hashlimit_burst,
338+
:hashlimit_mode, :hashlimit_srcmask, :hashlimit_dstmask, :hashlimit_htable_size,
339+
:hashlimit_htable_max, :hashlimit_htable_expire, :hashlimit_htable_gcinterval, :bytecode, :zone, :helper, :rpfilter, :condition, :name, :notrack
340+
]
341341
end

0 commit comments

Comments
 (0)