net/frr - add "soft-reconfiguration inbound" neighbor option, should fix https://github.com/opnsense/plugins/issues/3728 (#3730)

This commit is contained in:
Ad Schellevis 2024-01-03 15:52:46 +01:00 committed by GitHub
parent 99a7d00643
commit b07f9ee7bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 3 deletions

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= frr
PLUGIN_VERSION= 1.37
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= The FRRouting Protocol Suite
PLUGIN_DEPENDS= frr8
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com

View file

@ -88,6 +88,12 @@
<label>Route Reflector Client</label>
<type>checkbox</type>
</field>
<field>
<id>neighbor.soft_reconfiguration_inbound</id>
<label>Soft reconfiguration inbound</label>
<type>checkbox</type>
<help>This option allows changing policies without clearing the BGP session.</help>
</field>
<field>
<id>neighbor.bfd</id>
<label>BFD</label>

View file

@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/quagga/bgp</mount>
<description>BGP Routing configuration</description>
<version>1.0.7</version>
<version>1.0.8</version>
<items>
<enabled type="BooleanField">
<default>0</default>
@ -115,6 +115,10 @@
<default>0</default>
<Required>N</Required>
</rrclient>
<soft_reconfiguration_inbound type="BooleanField">
<default>0</default>
<Required>N</Required>
</soft_reconfiguration_inbound>
<bfd type="BooleanField">
<default>0</default>
<Required>N</Required>

View file

@ -110,7 +110,7 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
network {{ network }}
{% endfor %}
{% for neighbor in neighbors[addressFamily] %}
neighbor {{ neighbor.address }} activate
neighbor {{ neighbor.address }} activate
{% if 'nexthopself' in neighbor and neighbor.nexthopself == '1' %}
neighbor {{ neighbor.address }} next-hop-self {% if 'nexthopselfall' in neighbor and neighbor.nexthopselfall == '1' %}all{% endif %}
@ -118,6 +118,9 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
{% if 'rrclient' in neighbor and neighbor.rrclient == '1' %}
neighbor {{ neighbor.address }} route-reflector-client
{% endif %}
{% if neighbor.soft_reconfiguration_inbound|default('0') == '1' %}
neighbor {{ neighbor.address }} soft-reconfiguration inbound
{% endif %}
{% if 'defaultoriginate' in neighbor and neighbor.defaultoriginate == '1' %}
neighbor {{ neighbor.address }} default-originate
{% endif %}