mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2025-04-25 21:11:59 +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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user