net/frr: finalize BFD for BGP (#2364)

This commit is contained in:
Michael
2021-04-28 22:08:51 +02:00
committed by GitHub
parent 9a132c1805
commit eacc857cdc
4 changed files with 15 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
PLUGIN_NAME= frr
PLUGIN_VERSION= 1.22
PLUGIN_REVISION= 1
PLUGIN_COMMENT= The FRRouting Protocol Suite
PLUGIN_DEPENDS= frr7
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
@@ -38,6 +38,12 @@
<label>Multi-Hop</label>
<type>checkbox</type>
</field>
<field>
<id>neighbor.bfd</id>
<label>BFD</label>
<type>checkbox</type>
<help>You can enable BFD support for this neighbor.</help>
</field>
<field>
<id>neighbor.keepalive</id>
<label>Keepalive</label>
@@ -74,6 +74,10 @@
<default>0</default>
<Required>N</Required>
</multihop>
<bfd type="BooleanField">
<default>0</default>
<Required>N</Required>
</bfd>
<keepalive type="IntegerField">
<Required>N</Required>
<MinimumValue>1</MinimumValue>
@@ -28,7 +28,10 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
{% for neighbor in helpers.toList('OPNsense.quagga.bgp.neighbors.neighbor') %}
{% if neighbor.enabled == '1' %}
neighbor {{ neighbor.address }} remote-as {{ neighbor.remoteas }}
{% if 'updatesource' in neighbor and neighbor.updatesource != '' %}
{% if 'bfd' in neighbor and neighbor.bfd == '1' %}
neighbor {{ neighbor.address }} bfd
{% endif %}
{% if 'updatesource' in neighbor and neighbor.updatesource != '' %}
neighbor {{ neighbor.address }} update-source {{ physical_interface(neighbor.updatesource) }}
{% endif %}
{% if 'multihop' in neighbor and neighbor.multihop == '1' %}