.. _ansible.utils.slaac_filter: ******************* ansible.utils.slaac ******************* **This filter returns the SLAAC address within a network for a given HW/MAC address.** Version added: 2.5.0 .. contents:: :local: :depth: 1 Synopsis -------- - This filter returns the SLAAC address within a network for a given HW/MAC address. - The filter slaac() generates an IPv6 address for a given network and a MAC Address in Stateless Configuration. Parameters ---------- .. raw:: html
Parameter Choices/Defaults Configuration Comments
query
string
nth host
value
string / required
The network address or range to test against.

Examples -------- .. code-block:: yaml #### examples - name: The filter slaac() generates an IPv6 address for a given network and a MAC Address in Stateless Configuration. debug: msg: "{{ 'fdcf:1894:23b5:d38c:0000:0000:0000:0000' | slaac('c2:31:b3:83:bf:2b') }}" # TASK [The filter slaac() generates an IPv6 address for a given network and a MAC Address in Stateless Configuration.] *** # task path: /Users/amhatre/ansible-collections/playbooks/test_slaac.yaml:7 # Loading collection ansible.utils from /Users/amhatre/ansible-collections/collections/ansible_collections/ansible/utils # ok: [localhost] => { # "msg": "fdcf:1894:23b5:d38c:c031:b3ff:fe83:bf2b" # } Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this filter: .. raw:: html
Key Returned Description
data
string
Returns the SLAAC address within a network for a given HW/MAC address.



Status ------ Authors ~~~~~~~ - Ashwini Mhatre (@amhatre) .. hint:: Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.