bird/templates/ifcfg-lo.j2
2021-10-25 12:53:52 +03:00

16 lines
477 B
Django/Jinja

DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
{% for protocol_static in bird.bgp.static %}
{% for network in protocol_static['networks'][ansible_fqdn] %}
IPADDR{{ loop.index }}={{ network['ip'] }}
NETMASK{{ loop.index }}={{ network['mask'] }}
{% endfor %}
{% endfor %}
ONBOOT=yes
NAME=loopback