63ca114c95
- migrate dictionary `ipv6` into two simple lists - migrate dictionary `forward_zones` into a list
9 lines
266 B
Django/Jinja
9 lines
266 B
Django/Jinja
{% set ip4hex = item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
|
{% set mac = '0200' + ip4hex -%}
|
|
#
|
|
# {{ ansible_managed }}
|
|
#
|
|
auto {{ item.id }}0
|
|
iface {{ item.id }}0
|
|
link-type dummy
|
|
hwaddress {{ mac | hwaddr('linux') }}
|