net/frr: Allow disabling enforce_first_as, which is a new default in frr10 (#5001)

This commit is contained in:
Monviech 2025-11-03 15:08:31 +01:00 committed by GitHub
parent 674f0a6fa5
commit 1ce75bdc52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 0 deletions

View file

@ -54,6 +54,13 @@
<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.enforce_first_as</id>
<label>Enforce First AS</label>
<type>checkbox</type>
<advanced>true</advanced>
<help>Deny an update received from an external BGP (eBGP) peer that does not list its autonomous system number at the beginning of the AS_PATH in the incoming update.</help>
</field>
<field>
<id>bgp.logneighborchanges</id>
<label>Log Neighbor Changes</label>

View file

@ -28,6 +28,10 @@
<Default>1</Default>
<Required>Y</Required>
</networkimportcheck>
<enforce_first_as type="BooleanField">
<Default>1</Default>
<Required>Y</Required>
</enforce_first_as>
<logneighborchanges type="BooleanField">
<Default>0</Default>
<Required>Y</Required>

View file

@ -31,6 +31,9 @@
router bgp {{ OPNsense.quagga.bgp.asnumber }}
{% if not helpers.empty('OPNsense.quagga.bgp.logneighborchanges') %}
bgp log-neighbor-changes
{% endif %}
{% if OPNsense.quagga.bgp.enforce_first_as == '0' %}
no bgp enforce-first-as
{% endif %}
no bgp default ipv4-unicast
no bgp ebgp-requires-policy