net/frr: add "all" parameter to BGP neighbor (#2704)

This commit is contained in:
Michael
2022-01-03 15:24:01 +01:00
committed by GitHub
parent e67328a951
commit 54115c4304
5 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= frr
PLUGIN_VERSION= 1.24
PLUGIN_VERSION= 1.25
PLUGIN_COMMENT= The FRRouting Protocol Suite
PLUGIN_DEPENDS= frr7
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
+4
View File
@@ -11,6 +11,10 @@ switching and routing, Internet access routers, and Internet peering.
Plugin Changelog
================
1.25
* Add "All" option to next-hop-self command (#2673)
1.24
* Add AS-Override (#2517)
@@ -40,6 +40,12 @@
<label>Next-Hop-Self</label>
<type>checkbox</type>
</field>
<field>
<id>neighbor.nexthopselfall</id>
<label>Next-Hop-Self All</label>
<type>checkbox</type>
<help>Add the parameter "all" after next-hop-self command.</help>
</field>
<field>
<id>neighbor.multihop</id>
<label>Multi-Hop</label>
@@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/quagga/bgp</mount>
<description>BGP Routing configuration</description>
<version>1.0.5</version>
<version>1.0.6</version>
<items>
<enabled type="BooleanField">
<default>0</default>
@@ -79,6 +79,10 @@
<default>0</default>
<Required>N</Required>
</nexthopself>
<nexthopselfall type="BooleanField">
<default>0</default>
<Required>N</Required>
</nexthopselfall>
<multihop type="BooleanField">
<default>0</default>
<Required>N</Required>
@@ -91,7 +91,8 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
{% for neighbor in neighbors[addressFamily] %}
neighbor {{ neighbor.address }} activate
{% if 'nexthopself' in neighbor and neighbor.nexthopself == '1' %}
neighbor {{ neighbor.address }} next-hop-self
neighbor {{ neighbor.address }} next-hop-self {% if 'nexthopselfall' in neighbor and neighbor.nexthopselfall == '1' %}all{% endif %}
{% endif %}
{% if 'rrclient' in neighbor and neighbor.rrclient == '1' %}
neighbor {{ neighbor.address }} route-reflector-client