]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(#10997) Add ipencap (protocol 4) support to firewall type property 'proto'
authorSharif Nassar <sharif@mrwacky.com>
Sat, 12 Nov 2011 21:08:29 +0000 (13:08 -0800)
committerKen Barber <ken@bob.sh>
Tue, 22 Nov 2011 10:56:43 +0000 (10:56 +0000)
This change adds ipencap as a viable option, and adds it to tests as well.

lib/puppet/type/firewall.rb
spec/unit/puppet/type/firewall_spec.rb

index 8fcb1f66cfd4934485f17c2217d70d3576eccb55..e6bd0d38632344412c59fbba537b2777105086a2 100644 (file)
@@ -183,7 +183,7 @@ Puppet::Type.newtype(:firewall) do
       *tcp*.
     EOS
 
-    newvalues(:tcp, :udp, :icmp, :"ipv6-icmp", :esp, :ah, :vrrp, :igmp, :all)
+    newvalues(:tcp, :udp, :icmp, :"ipv6-icmp", :esp, :ah, :vrrp, :igmp, :ipencap, :all)
     defaultto "tcp"
   end
 
index 7352a0769e9878da530dad29149d11da7675db16..c08d6ab5e8bc867b742a03cf3cc51f576aa40931 100644 (file)
@@ -74,7 +74,7 @@ describe firewall do
   end
 
   describe ':proto' do
-    [:tcp, :udp, :icmp, :esp, :ah, :vrrp, :igmp, :all].each do |proto|
+    [:tcp, :udp, :icmp, :esp, :ah, :vrrp, :igmp, :ipencap, :all].each do |proto|
       it "should accept proto value #{proto}" do
         @resource[:proto] = proto
         @resource[:proto].should == proto