Have a function to handle IPv6 address brackets.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-openstacklib |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi,
when using ipv6, one has often to put brackets around the ip when it puts it in url. It would be very convenient to have a function that does it.
Here the interface I have in mind with the puppet-nova module:
class nova::vncproxy:
$vncproxy_host = undef,
$vncproxy_
$vncproxy_port = undef,
$vncproxy_path = undef,
) {
include ::nova::deps
$vncproxy_
ipv6_
This would returns an array with the host decorated with "[]" if the
value is an IPv6 address. Ideally the function could take only one
value and return it or take an array and return an array for seamless
integration in the code.
https:/ /review. openstack. org/#/c/ 264927/