Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 602 Bytes

isipinsubnet.markdown

File metadata and controls

25 lines (15 loc) · 602 Bytes
layout title published
default
isipinsubnet
true

[%CFEngine_function_prototype(range, ip_address1, ip_address2, ...)%]

Description: Returns whether the given range contains any of the following IP addresses.

[%CFEngine_function_attributes(range, ip_address1, ip_address2, ...)%]

Example:

Run:

[%CFEngine_include_snippet(isipinsubnet.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(isipinsubnet.cf, #+begin_src\s+example_output\s*, .*end_src)%]

See also: iprange(), host2ip(), ip2host()

History: Was introduced in CFEngine 3.10.