mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Add OSPF Router ID (#299)
* Add OSPF Router ID * fix indent * fix makefile indent; bump version
This commit is contained in:
committed by
Franco Fichtner
parent
6c6d484cde
commit
c481894389
+5
-5
@@ -1,7 +1,7 @@
|
||||
PLUGIN_NAME= quagga
|
||||
PLUGIN_VERSION= 1.4.1
|
||||
PLUGIN_COMMENT= Quagga Routing Suite
|
||||
PLUGIN_DEPENDS= quagga ruby
|
||||
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
|
||||
PLUGIN_NAME= quagga
|
||||
PLUGIN_VERSION= 1.4.2
|
||||
PLUGIN_COMMENT= Quagga Routing Suite
|
||||
PLUGIN_DEPENDS= quagga ruby
|
||||
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
|
||||
|
||||
.include "../../Mk/plugins.mk"
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
<type>checkbox</type>
|
||||
<help>This will activate the OSPF service if routing protocols are enabled in "General".</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>ospf.routerid</id>
|
||||
<label>Router ID</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>If you have a CARP setup, you may want to configure a router id in case of a conflict.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>ospf.passiveinterfaces</id>
|
||||
<label>Passive Interfaces</label>
|
||||
|
||||
@@ -6,6 +6,11 @@
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</enabled>
|
||||
<routerid type="TextField">
|
||||
<default></default>
|
||||
<Required>N</Required>
|
||||
<mask>/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/</mask>
|
||||
</routerid>
|
||||
<originate type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
|
||||
@@ -37,6 +37,9 @@ interface {{ physical_interface(interface.interfacename) }}
|
||||
{% endif %}
|
||||
!
|
||||
router ospf
|
||||
{% if helpers.exists('OPNsense.quagga.ospf.routerid') and OPNsense.quagga.ospf.routerid != '' %}
|
||||
ospf router-id {{ OPNsense.quagga.ospf.routerid }}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.quagga.ospf.redistribute') and OPNsense.quagga.ospf.redistribute != '' %}
|
||||
{% for line in OPNsense.quagga.ospf.redistribute.split(',') %}
|
||||
redistribute {{ line }}
|
||||
|
||||
Reference in New Issue
Block a user