Krikri::IpAddrCore
Constants
FAMILY_FILTERS = Set {"ipaddr", "ipv4", "ipv6", "ipsubnet", "ipmath", "next_nth_usable", "previous_nth_usable", "network_in_network", "network_in_usable", "ip4_hex", "nthhost"}
Instance methods
ipaddr(value : JSON::Any, query : String = "", version : Int32 | Nil = nil, alias_name : String = "ipaddr") : JSON::Any
Sourcenthhost indexes the FULL range (network..broadcast), unlike next/previous_nth_usable which skip network/broadcast - nth 0 is the network address, -1 the broadcast address. The query is a string in the plugin's argspec: empty or non-integer returns FALSE, and a positive index past the range size returns FALSE too (all live-verified on 2.19.11 + ansible.utils). Only a negative index beyond -size is fatal; real ansible surfaces that as "The filter plugin 'ansible.utils.nthhost' failed: index out range for address range size!", so the full wrapped text is raised here - the engine adds no prefix of its own.