Module: Puppet::Parser::Functions

Defined in:
lib/puppet/parser/functions/validate_ip_address_array.rb

Overview

Function: validate_ip_address_array

Validates an array of IP addresses, raising a ParseError should one or more addresses fail. Validates both v4 and v6 IP addresses.

Examples

The following values will pass:

validate_ip_address_array([‘127.0.0.1’, ‘::1’])

The following values will raise an error:

validate_ip_address_array(‘127.0.0.1’) validate_ip_address_array()

Authors

Mario Finelli <mario@finel.li>

Copyright 2015 Mario Finelli

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.