mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/frr: Add address family selection to peer groups (#4861)
* net/frr: Add address family selection to peer groups
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
PLUGIN_NAME= frr
|
||||
PLUGIN_VERSION= 1.45
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_REVISION= 2
|
||||
PLUGIN_COMMENT= The FRRouting Protocol Suite
|
||||
PLUGIN_DEPENDS= frr10-pythontools
|
||||
PLUGIN_MAINTAINER= ad@opnsense.org
|
||||
|
||||
@@ -19,6 +19,7 @@ Plugin Changelog
|
||||
* Fix peer group activation (opnsense/plugins/pull/4777)
|
||||
* Switch to FRR 10 (opnsense/plugins/pull/4741)
|
||||
* Further adjustments for FRR 10
|
||||
* Add address family selection to peer groups (opnsense/plugins/pull/4861)
|
||||
|
||||
1.44
|
||||
|
||||
|
||||
+7
@@ -33,6 +33,13 @@
|
||||
<visible>false</visible>
|
||||
</grid_view>
|
||||
</field>
|
||||
<field>
|
||||
<id>peergroup.family</id>
|
||||
<label>Address Family</label>
|
||||
<type>dropdown</type>
|
||||
<type>select_multiple</type>
|
||||
<help>Select which address families to activate for this peer group.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>peergroup.listenranges</id>
|
||||
<label>Listen Ranges</label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/quagga/bgp</mount>
|
||||
<description>BGP Routing configuration</description>
|
||||
<version>1.1.0</version>
|
||||
<version>1.1.1</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<Default>0</Default>
|
||||
@@ -439,6 +439,15 @@
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>4294967295</MaximumValue>
|
||||
</remoteas>
|
||||
<family type="OptionField">
|
||||
<Required>Y</Required>
|
||||
<Default>ipv4</Default>
|
||||
<Multiple>Y</Multiple>
|
||||
<OptionValues>
|
||||
<ipv4>IPv4</ipv4>
|
||||
<ipv6>IPv6</ipv6>
|
||||
</OptionValues>
|
||||
</family>
|
||||
<listenranges type="NetworkField">
|
||||
<FieldSeparator>,</FieldSeparator>
|
||||
<AsList>Y</AsList>
|
||||
|
||||
@@ -163,7 +163,7 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
|
||||
network {{ network }}
|
||||
{% endfor %}
|
||||
{% for peergroup in helpers.toList('OPNsense.quagga.bgp.peergroups.peergroup') %}
|
||||
{% if peergroup.enabled == '1' %}
|
||||
{% if peergroup.enabled == '1' and (addressFamily in peergroup.family.split(',')) %}
|
||||
neighbor {{ peergroup.name }} activate
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user