fix confederation

This commit is contained in:
ace 2021-10-25 14:32:07 +03:00
parent 84425da4c2
commit e1bfad2b10
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0

View File

@ -26,8 +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 %}
confederation {{ protocol_bgp.confederation }};
confederation member yes;
{% endif %}
local as {{ protocol_bgp.local_asnum }};
neighbor {{ protocol_bgp.remote_addr }} as {{ protocol_bgp.remote_asnum }};
hold time 30;