Skip to content

Commit 5c3d27c

Browse files
authored
net/frr: Add checkbox for bgp neighbor changes (opnsense#3490)
1 parent 14dda8a commit 5c3d27c

File tree

5 files changed

+18
-1
lines changed

5 files changed

+18
-1
lines changed

net/frr/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PLUGIN_NAME= frr
2-
PLUGIN_VERSION= 1.33
2+
PLUGIN_VERSION= 1.34
33
PLUGIN_COMMENT= The FRRouting Protocol Suite
44
PLUGIN_DEPENDS= frr8
55
PLUGIN_MAINTAINER= [email protected]

net/frr/pkg-descr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ WWW: https://frrouting.org/
1212
Plugin Changelog
1313
================
1414

15+
1.34
16+
17+
* Add checkbox to log BGP neighbor changes
18+
1519
1.33
1620

1721
* Allow both IPv4 and IPv6 in BGP via setkey (contributed by as8net)

net/frr/src/opnsense/mvc/app/controllers/OPNsense/Quagga/forms/bgp.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
<advanced>true</advanced>
4141
<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>
4242
</field>
43+
<field>
44+
<id>bgp.logneighborchanges</id>
45+
<label>Log Neighbor Changes</label>
46+
<type>checkbox</type>
47+
<help>This will activate exetended logging of BGP neighbor changes.</help>
48+
</field>
4349
<field>
4450
<id>bgp.redistribute</id>
4551
<label>Route Redistribution</label>

net/frr/src/opnsense/mvc/app/models/OPNsense/Quagga/BGP.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
<default>1</default>
2626
<Required>Y</Required>
2727
</networkimportcheck>
28+
<logneighborchanges type="BooleanField">
29+
<default>0</default>
30+
<Required>Y</Required>
31+
</logneighborchanges>
2832
<networks type="CSVListField">
2933
<default></default>
3034
<Required>N</Required>

net/frr/src/opnsense/service/templates/OPNsense/Quagga/bgpd.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ frr defaults {{ OPNsense.quagga.general.profile }}
4343
!
4444
{% if helpers.exists('OPNsense.quagga.bgp.asnumber') and OPNsense.quagga.bgp.asnumber != '' %}
4545
router bgp {{ OPNsense.quagga.bgp.asnumber }}
46+
{% if not helpers.empty('OPNsense.quagga.bgp.logneighborchanges') %}
47+
bgp log-neighbor-changes
48+
{% endif %}
4649
no bgp default ipv4-unicast
4750
no bgp ebgp-requires-policy
4851
{% if helpers.exists('OPNsense.quagga.bgp.networkimportcheck') and OPNsense.quagga.bgp.networkimportcheck == '1' %}

0 commit comments

Comments
 (0)