Skip to content

Latest commit

 

History

History
140 lines (107 loc) · 4.18 KB

ansible.utils.slaac_filter.rst

File metadata and controls

140 lines (107 loc) · 4.18 KB

ansible.utils.slaac

This filter returns the SLAAC address within a network for a given HW/MAC address.

Version added: 2.5.0

  • 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.
Parameter Choices/Defaults Configuration Comments
query
string
nth host
value
string / required
The network address or range to test against.

#### 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"
# }

Common return values are documented here, the following are the fields unique to this filter:

Key Returned Description
data
string
Returns the SLAAC address within a network for a given HW/MAC address.



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.