Puppet Function: stdlib::has_ip_network

Defined in:
functions/has_ip_network.pp
Function type:
Puppet Language

Summary

Returns true if the client has the requested IPv4 network on some interface.

Overview

stdlib::has_ip_network(Stdlib::IP::Address::V4::Nosubnet $ip_network)Boolean

Parameters:

  • ip_network (Stdlib::IP::Address::V4::Nosubnet)

    The IPv4 network you want to check the existence of

Returns:

  • (Boolean)

    Returns ‘true` if the requested IP network exists on any interface.



6
7
8
9
10
# File 'functions/has_ip_network.pp', line 6

function stdlib::has_ip_network(
  Stdlib::IP::Address::V4::Nosubnet $ip_network,
) >> Boolean {
  stdlib::has_interface_with('network', $ip_network)
}