Timotej Lazar
25bcddede1
Consolidate base system and networking setup into debian role and BGP configuration into frr role. Add facts role to collect data from NetBox once to avoid many slow lookups. Also many other tweaks and cleanups.
8 lines
365 B
Django/Jinja
8 lines
365 B
Django/Jinja
{% set lo = hostvars[inventory_hostname].interfaces | selectattr('name', '==', 'lo') | first %}
|
|
{% set vxlan_ip = lo.ip_addresses | selectattr('family.value', '==', 4)
|
|
| map(attribute='address') | first
|
|
| ipaddr('address') %}
|
|
iface lo
|
|
# without this the local tunnel IP is sometimes advertised as 0.0.0.0 on boot
|
|
vxlan-local-tunnelip {{ vxlan_ip }}
|