]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(MODULES-5645) Choose correct IP version for hostname resolution
authorKevin Peng <kpengboy@ocf.berkeley.edu>
Sun, 24 Sep 2017 07:43:42 +0000 (00:43 -0700)
committerKevin Peng <kpengboy@ocf.berkeley.edu>
Sun, 24 Sep 2017 07:43:42 +0000 (00:43 -0700)
commitcb1bc3d5a0e2b8c049fd3af06180f3f2957427ff
tree48db7967229b39af5ea44a1a52d6064585bd339d
parentaccc084121ae396be62095bac8ca589fc7b97960
(MODULES-5645) Choose correct IP version for hostname resolution

Currently hostnames specified in a `source` or `destination` field
in a firewall rule are always resolved as IPv4, even when the
provider is `ip6tables`. Instead, intelligently determine whether
the hostname should be resolved as an IPv4 address or IPv6 address
based on the provider.
lib/puppet/type/firewall.rb
lib/puppet/util/firewall.rb
lib/puppet/util/ipcidr.rb
spec/unit/puppet/util/firewall_spec.rb