mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2025-06-29 02:23:08 +00:00
rewrite bird
This commit is contained in:
@ -24,7 +24,7 @@ protocol kernel KERNEL6 {
|
||||
protocol static {{ protocol_static.name }} {
|
||||
ipv4;
|
||||
{% for network in protocol_static['networks'][inventory_hostname] %}
|
||||
route {{ network.ip }}/{{ network.mask_dash }} via "lo" { bgp_local_pref = {{ network.bgp_local_pref }}; };
|
||||
route {{ network.ip }} via "{{ network.interface }}" { bgp_local_pref = {{ network.bgp_local_pref }}; };
|
||||
{% endfor %}
|
||||
}
|
||||
{% endfor %}
|
||||
|
@ -1,15 +0,0 @@
|
||||
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
|
Reference in New Issue
Block a user