mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/frr: add "all" parameter to BGP neighbor (#2704)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user