]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(#14455) Support interface names containing "+"
authorSimon Deziel <simon.deziel@gmail.com>
Sat, 12 May 2012 15:23:45 +0000 (11:23 -0400)
committerKen Barber <ken@bob.sh>
Sun, 13 May 2012 21:51:40 +0000 (22:51 +0100)
Previously iniface and outiface wouldn't allow + in the interface names. This
patch fixes that.

lib/puppet/type/firewall.rb

index a5cc87201fd035a6f776877ee1ea243eca5e460e..59db2eaa739cf9943feb7199938938587714f2ca 100644 (file)
@@ -295,14 +295,14 @@ Puppet::Type.newtype(:firewall) do
     desc <<-EOS
       Input interface to filter on.
     EOS
-    newvalues(/^[a-zA-Z0-9\-\._]+$/)
+    newvalues(/^[a-zA-Z0-9\-\._\+]+$/)
   end
 
   newproperty(:outiface, :required_features => :interface_match) do
     desc <<-EOS
       Output interface to filter on.
     EOS
-    newvalues(/^[a-zA-Z0-9\-\._]+$/)
+    newvalues(/^[a-zA-Z0-9\-\._\+]+$/)
   end
 
   # NAT specific properties