ansible-ffibk/roles/network-fastd/templates/fastd-backbone.j2
2019-03-24 23:14:06 +01:00

9 lines
337 B
Django/Jinja

{% set ip4hex = item.0.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
{% set mac = '023' + item.1.id|string + ip4hex -%}
#
# {{ ansible_managed }}
#
auto {{ item.0.id }}igvpn-{{ item.1.mtu }}
iface {{ item.0.id }}igvpn-{{ item.1.mtu }}
mtu {{ item.1.mtu }}
hwaddress {{ mac | hwaddr('linux') }}