net/frr: Add checkbox for bgp neighbor changes (#3490)

This commit is contained in:
Michael
2023-07-04 11:23:59 +02:00
committed by GitHub
parent 14dda8a1d3
commit 5c3d27cc51
5 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= frr
PLUGIN_VERSION= 1.33
PLUGIN_VERSION= 1.34
PLUGIN_COMMENT= The FRRouting Protocol Suite
PLUGIN_DEPENDS= frr8
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
+4
View File
@@ -12,6 +12,10 @@ WWW: https://frrouting.org/
Plugin Changelog
================
1.34
* Add checkbox to log BGP neighbor changes
1.33
* Allow both IPv4 and IPv6 in BGP via setkey (contributed by as8net)
@@ -40,6 +40,12 @@
<advanced>true</advanced>
<help>When enabled (default), BGP only announces networks set at 'Network' if they are present in the routers routing table (alternatively, you can also set a null-route via System -> Routes). If disabled, all configured networks will be announced.</help>
</field>
<field>
<id>bgp.logneighborchanges</id>
<label>Log Neighbor Changes</label>
<type>checkbox</type>
<help>This will activate exetended logging of BGP neighbor changes.</help>
</field>
<field>
<id>bgp.redistribute</id>
<label>Route Redistribution</label>
@@ -25,6 +25,10 @@
<default>1</default>
<Required>Y</Required>
</networkimportcheck>
<logneighborchanges type="BooleanField">
<default>0</default>
<Required>Y</Required>
</logneighborchanges>
<networks type="CSVListField">
<default></default>
<Required>N</Required>
@@ -43,6 +43,9 @@ frr defaults {{ OPNsense.quagga.general.profile }}
!
{% if helpers.exists('OPNsense.quagga.bgp.asnumber') and OPNsense.quagga.bgp.asnumber != '' %}
router bgp {{ OPNsense.quagga.bgp.asnumber }}
{% if not helpers.empty('OPNsense.quagga.bgp.logneighborchanges') %}
bgp log-neighbor-changes
{% endif %}
no bgp default ipv4-unicast
no bgp ebgp-requires-policy
{% if helpers.exists('OPNsense.quagga.bgp.networkimportcheck') and OPNsense.quagga.bgp.networkimportcheck == '1' %}