net/frr: fix strict BFD rendering

Render the base BFD command before its separate strict command to match FRR's running configuration.
This commit is contained in:
Monviech
2026-09-28 17:24:00 +02:00
parent 4f95c4fd22
commit 6dfbea14f3
@@ -137,7 +137,10 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
neighbor {{ neighbor.address }} description {{ neighbor.description }}
{% endif %}
{% if neighbor.bfd|default('') == '1' %}
neighbor {{ neighbor.address }} bfd {% if neighbor.bfd_strict|default('') == '1' %}strict{% endif +%}
neighbor {{ neighbor.address }} bfd
{% if neighbor.bfd_strict|default('') == '1' %}
neighbor {{ neighbor.address }} bfd strict
{% endif %}
{% endif %}
{% if 'password' in neighbor and neighbor.password != '' %}
neighbor {{ neighbor.address }} password {{ neighbor.password }}