From 08aa904ff41afff269e8ba7853942ac1944baf1d Mon Sep 17 00:00:00 2001 From: Sharif Nassar Date: Sat, 12 Nov 2011 13:08:29 -0800 Subject: [PATCH] (#10997) Add ipencap (protocol 4) support to firewall type property 'proto' This change adds ipencap as a viable option, and adds it to tests as well. --- lib/puppet/type/firewall.rb | 2 +- spec/unit/puppet/type/firewall_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index 8fcb1f6..e6bd0d3 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -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 diff --git a/spec/unit/puppet/type/firewall_spec.rb b/spec/unit/puppet/type/firewall_spec.rb index 7352a07..c08d6ab 100644 --- a/spec/unit/puppet/type/firewall_spec.rb +++ b/spec/unit/puppet/type/firewall_spec.rb @@ -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 -- 2.45.2