2017-10-06 22:58:00 +02:00
|
|
|
{% set ip4hex = item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
2017-09-05 12:01:27 +02:00
|
|
|
{% set mac = '0200' + ip4hex -%}
|
|
|
|
#
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
#
|
2017-10-06 22:58:00 +02:00
|
|
|
auto {{ item.id }}0
|
|
|
|
iface {{ item.id }}0
|
2017-10-03 14:37:39 +02:00
|
|
|
link-type dummy
|
|
|
|
hwaddress {{ mac | hwaddr('linux') }}
|