mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2025-01-18 12:02:22 +00:00
update config
This commit is contained in:
parent
7e97d7e0e1
commit
9aedfaf036
@ -4,12 +4,12 @@ router id {{ bird.bgp.common[inventory_hostname].routerid }};
|
||||
protocol device {
|
||||
}
|
||||
protocol direct {
|
||||
disabled; # Disable by default
|
||||
ipv4; # Connect to default IPv4 table
|
||||
ipv6; # ... and to default IPv6 table
|
||||
disabled;
|
||||
ipv4;
|
||||
ipv6;
|
||||
}
|
||||
protocol kernel KERNEL4 {
|
||||
ipv4 { # Connect protocol to IPv4 table by channel
|
||||
ipv4 {
|
||||
export all; # Export to protocol. default is export none
|
||||
};
|
||||
}
|
||||
@ -18,7 +18,7 @@ protocol kernel KERNEL6 {
|
||||
}
|
||||
{% for protocol_static in bird.bgp.static %}
|
||||
protocol static {{ protocol_static.name }} {
|
||||
ipv4; # Again, IPv4 channel with default options
|
||||
ipv4;
|
||||
{% for network in protocol_static['networks'][inventory_hostname] %}
|
||||
route {{ network.ip }}/{{ network.mask_dash }} via "lo" { bgp_local_pref = {{ network.bgp_local_pref }}; };
|
||||
{% endfor %}
|
||||
@ -26,10 +26,10 @@ protocol static {{ protocol_static.name }} {
|
||||
{% endfor %}
|
||||
{% for protocol_bgp in bird.bgp.bgp %}
|
||||
protocol bgp {{ protocol_bgp.name }} {
|
||||
{% if protocol_bgp.confederation is defined %}
|
||||
{% if protocol_bgp.confederation is defined %}
|
||||
confederation {{ protocol_bgp.confederation }};
|
||||
confederation member yes;
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
local as {{ protocol_bgp.local_asnum }};
|
||||
neighbor {{ protocol_bgp.remote_addr }} as {{ protocol_bgp.remote_asnum }};
|
||||
hold time 30;
|
||||
|
Loading…
Reference in New Issue
Block a user