From: Arnoud Vermeer Date: Tue, 3 Jan 2012 09:59:28 +0000 (+0100) Subject: (#11673) Adding OSPF(v3) protocol to puppetlabs-firewall X-Git-Tag: 0.1.0~43^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=28df9f1cf5e611b4e19e9fe23257a2cf405ca841;p=puppet-modules%2Fpuppetlabs-firewall.git (#11673) Adding OSPF(v3) protocol to puppetlabs-firewall Added support for ospf to the proto property. --- diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index 299163a..726edd6 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -192,7 +192,7 @@ Puppet::Type.newtype(:firewall) do *tcp*. EOS - newvalues(:tcp, :udp, :icmp, :"ipv6-icmp", :esp, :ah, :vrrp, :igmp, :ipencap, :all) + newvalues(:tcp, :udp, :icmp, :"ipv6-icmp", :esp, :ah, :vrrp, :igmp, :ipencap, :ospf, :all) defaultto "tcp" end diff --git a/spec/unit/puppet/type/firewall_spec.rb b/spec/unit/puppet/type/firewall_spec.rb index 2ccef9d..4d1eca8 100755 --- 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, :ipencap, :all].each do |proto| + [:tcp, :udp, :icmp, :esp, :ah, :vrrp, :igmp, :ipencap, :ospf, :all].each do |proto| it "should accept proto value #{proto}" do @resource[:proto] = proto @resource[:proto].should == proto