Add note to various network_hosts docs about long_run for IPv6 networks

This commit is contained in:
rallytime 2017-07-06 17:36:18 -06:00
parent 11862743c2
commit b8bcc0d599
2 changed files with 11 additions and 1 deletions

View file

@ -1202,7 +1202,12 @@ Returns:
.. versionadded:: 2017.7.0
Return the list of hosts within a networks.
Return the list of hosts within a networks. This utility works for both IPv4 and IPv6.
.. note::
When running this command with a large IPv6 network, the command will
take a long time to gather all of the hosts.
Example:

View file

@ -453,6 +453,11 @@ def _network_hosts(ip_addr_entry):
def network_hosts(value, options=None, version=None):
'''
Return the list of hosts within a network.
.. note::
When running this command with a large IPv6 network, the command will
take a long time to gather all of the hosts.
'''
ipaddr_filter_out = _filter_ipaddr(value, options=options, version=version)
if not ipaddr_filter_out: