Initial commit, squashed
This commit is contained in:
commit
158e8740b8
83 changed files with 2718 additions and 0 deletions
19
roles/fabric/templates/loopback.intf.j2
Normal file
19
roles/fabric/templates/loopback.intf.j2
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% set addrs = interfaces | selectattr('name', '==', 'lo') |
|
||||
map(attribute='ip_addresses') | first | selectattr('role') %}
|
||||
{% set loopback = addrs | selectattr('role.value', '==', 'loopback') |
|
||||
map(attribute='address') %}
|
||||
{% set anycast = addrs | selectattr('role.value', '==', 'anycast') |
|
||||
map(attribute='address') %}
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
{% for address in loopback %}
|
||||
address {{ address }}
|
||||
{% endfor %}
|
||||
{% if peer is defined %}
|
||||
{% if loopback | ipv4 %}
|
||||
vxlan-local-tunnelip {{ loopback | ipv4 | first | ipaddr('address') }}
|
||||
{% endif %}
|
||||
{% if anycast | ipv4 %}
|
||||
clagd-vxlan-anycast-ip {{ anycast | first | ipaddr('address') }}
|
||||
{% endif %}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue