]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
Add support for single --sport and --dport parsing
authorKen Barber <ken@bob.sh>
Fri, 22 Feb 2013 16:55:37 +0000 (16:55 +0000)
committerKen Barber <ken@bob.sh>
Fri, 22 Feb 2013 16:55:37 +0000 (16:55 +0000)
commit3e13bf3dcecec475128a3cd2ae1f3fc34419fa3a
tree0789d47d132e1a6f1077b0071acd028670444ef9
parentb06d37b73183915b620e77acf372d90d566949d7
Add support for single --sport and --dport parsing

Previously if someone already had a rule with a single --sport or --dport we
would fail the parse. This now accepts parsing in the single variant, while
still supporting the multiport variant.

Signed-off-by: Ken Barber <ken@bob.sh>
lib/puppet/provider/firewall/iptables.rb
lib/puppet/util/ipcidr.rb
spec/fixtures/iptables/conversion_hash.rb