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
9aedfaf036
commit
3b6f8b5ea7
@ -3,19 +3,23 @@ router id {{ bird.bgp.common[inventory_hostname].routerid }};
|
||||
|
||||
protocol device {
|
||||
}
|
||||
|
||||
protocol direct {
|
||||
disabled;
|
||||
ipv4;
|
||||
ipv6;
|
||||
}
|
||||
|
||||
protocol kernel KERNEL4 {
|
||||
ipv4 {
|
||||
export all; # Export to protocol. default is export none
|
||||
};
|
||||
}
|
||||
|
||||
protocol kernel KERNEL6 {
|
||||
ipv6 { export all; };
|
||||
}
|
||||
|
||||
{% for protocol_static in bird.bgp.static %}
|
||||
protocol static {{ protocol_static.name }} {
|
||||
ipv4;
|
||||
@ -24,6 +28,7 @@ protocol static {{ protocol_static.name }} {
|
||||
{% endfor %}
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
{% for protocol_bgp in bird.bgp.bgp %}
|
||||
protocol bgp {{ protocol_bgp.name }} {
|
||||
{% if protocol_bgp.confederation is defined %}
|
||||
@ -41,6 +46,5 @@ protocol bgp {{ protocol_bgp.name }} {
|
||||
else reject;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user