]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
add -g flag handling in ip6tables.rb provider
authorChristopher E. Stith <cestith@users.noreply.github.com>
Wed, 24 Oct 2018 00:52:27 +0000 (19:52 -0500)
committerGitHub <noreply@github.com>
Wed, 24 Oct 2018 00:52:27 +0000 (19:52 -0500)
In lib/puppet/provider/firewall/ip6tables.rb there is no goto: entry for the -g flag in @resource_map which leads to errors for rules using that feature.

lib/puppet/type/firewall.rb already handles this flag. It's a one-line change to recognize it. The right rules then get into the chains in my testing.

lib/puppet/provider/firewall/ip6tables.rb

index d3c1b3c4b11b414102221d1134db099dbb94095c..29151e74f13ff38d2ad49ad0fc2ed9551d98f8d4 100644 (file)
@@ -77,6 +77,7 @@ Puppet::Type.type(:firewall).provide :ip6tables, parent: :iptables, source: :ip6
     dst_type: '--dst-type',
     gateway: '--gateway',
     gid: '--gid-owner',
+    goto: '-g',
     hop_limit: '-m hl --hl-eq',
     icmp: '-m icmp6 --icmpv6-type',
     iniface: '-i',