]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Add pim protocol to puppetlabs-firewall
authorMorten Brekkevold <morten.brekkevold@uninett.no>
Wed, 17 Feb 2016 11:59:47 +0000 (12:59 +0100)
committerMorten Brekkevold <morten.brekkevold@uninett.no>
Wed, 17 Feb 2016 11:59:47 +0000 (12:59 +0100)
README.markdown
lib/puppet/type/firewall.rb
spec/unit/puppet/type/firewall_spec.rb

index 0b74b81280c77fa42b7ed1a2bc0ae462f50af153..26467e034e621c3868a267ca29f9e892eccf968b 100644 (file)
@@ -641,6 +641,7 @@ firewall { '999 this runs last':
   * 'ipencap'
   * 'ospf'
   * 'gre'
+  * 'pim'
   * 'all'
 
 * `provider`: The specific backend to use for this firewall resource. You will seldom need to specify this --- Puppet will usually discover the appropriate provider for your platform. Available providers are ip6tables and iptables. See the [Providers](#providers) section above for details about these providers.
index e68b2d62a35a3eb7af70a886363dd37601605a50..4073d6ca075b9d31a8cb6f2da36c0c32c1320240 100644 (file)
@@ -369,7 +369,7 @@ Puppet::Type.newtype(:firewall) do
       *tcp*.
     EOS
 
-    newvalues(*[:tcp, :udp, :icmp, :"ipv6-icmp", :esp, :ah, :vrrp, :igmp, :ipencap, :ipv4, :ipv6, :ospf, :gre, :cbt, :sctp, :all].collect do |proto|
+    newvalues(*[:tcp, :udp, :icmp, :"ipv6-icmp", :esp, :ah, :vrrp, :igmp, :ipencap, :ipv4, :ipv6, :ospf, :gre, :cbt, :sctp, :pim, :all].collect do |proto|
       [proto, "! #{proto}".to_sym]
     end.flatten)
     defaultto "tcp"
index 38859f6a271154f8d0661b71111ded46be307897..3e4804df476f9aa0ce10acedef0eabc65388da60 100755 (executable)
@@ -82,7 +82,7 @@ describe firewall do
   end
 
   describe ':proto' do
-    [:tcp, :udp, :icmp, :esp, :ah, :vrrp, :igmp, :ipencap, :ipv4, :ipv6, :ospf, :gre, :all].each do |proto|
+    [:tcp, :udp, :icmp, :esp, :ah, :vrrp, :igmp, :ipencap, :ipv4, :ipv6, :ospf, :gre, :pim, :all].each do |proto|
       it "should accept proto value #{proto}" do
         @resource[:proto] = proto
         @resource[:proto].should == proto