Puppet Function: wmflib::ip_family
- Defined in:
- modules/wmflib/functions/ip_family.pp
- Function type:
- Puppet Language
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 |
# File 'modules/wmflib/functions/ip_family.pp', line 2
function wmflib::ip_family(Stdlib::IP::Address $ip) {
$ip ? {
Stdlib::IP::Address::V4 => 4,
Stdlib::IP::Address::V6 => 6,
default => fail('unrecognized ip'),
}
}
|