mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
net/frr: Allow disabling enforce_first_as, which is a new default in frr10 (#5001)
This commit is contained in:
parent
674f0a6fa5
commit
1ce75bdc52
3 changed files with 14 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue