Skip to content

Commit

Permalink
Add missing Mask on ip6tables
Browse files Browse the repository at this point in the history
The :mask option was missing in the ip6tables provider which prevented
it from correctly working with the recent module with the following
error:

Could not evaluate: Parser error: rttl was meant to be a boolean but received value: "--mask."
  • Loading branch information
jonathanio authored and Morgan Haskel committed Jan 14, 2015
1 parent 6d7de07 commit 1831f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/provider/firewall/ip6tables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
has_feature :iprange
has_feature :ipsec_dir
has_feature :ipsec_policy
has_feature :mask
has_feature :ipset

optional_commands({
Expand Down Expand Up @@ -85,6 +86,7 @@ def self.iptables_save(*args)
:limit => "-m limit --limit",
:log_level => "--log-level",
:log_prefix => "--log-prefix",
:mask => "--mask",
:name => "-m comment --comment",
:mac_source => ["-m mac --mac-source", "--mac-source"],
:outiface => "-o",
Expand Down Expand Up @@ -171,7 +173,7 @@ def self.iptables_save(*args)
:tcp_flags, :gid, :uid, :mac_source, :sport, :dport, :port, :dst_type,
:src_type, :socket, :pkttype, :name, :ipsec_dir, :ipsec_policy, :state,
:ctstate, :icmp, :hop_limit, :limit, :burst, :recent, :rseconds, :reap,
:rhitcount, :rttl, :rname, :rsource, :rdest, :ipset, :jump, :todest,
:rhitcount, :rttl, :rname, :mask, :rsource, :rdest, :ipset, :jump, :todest,
:tosource, :toports, :log_level, :log_prefix, :reject, :set_mark,
:connlimit_above, :connlimit_mask, :connmark]

Expand Down

0 comments on commit 1831f7b

Please sign in to comment.