mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/frr: Ability to change OSPF default route metric (#1001)
This commit is contained in:
parent
6b6c0d0669
commit
c7bc65a82f
3 changed files with 14 additions and 3 deletions
|
|
@ -38,5 +38,10 @@
|
|||
<type>checkbox</type>
|
||||
<help>This will send the information that we have a default gateway, regardless of if it is available.</help>
|
||||
</field>
|
||||
|
||||
<field>
|
||||
<id>ospf.originatemetric</id>
|
||||
<label>Advertise Default Gateway Metric</label>
|
||||
<type>text</type>
|
||||
<help>This let you manipulate the metric when advertising default gateway.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<model>
|
||||
<mount>//OPNsense/quagga/ospf</mount>
|
||||
<description>OSPF Routing configuration</description>
|
||||
<version>1.0.1</version>
|
||||
<version>1.0.2</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
|
|
@ -20,6 +20,12 @@
|
|||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</originatealways>
|
||||
<originatemetric type="IntegerField">
|
||||
<Required>N</Required>
|
||||
<MinimumValue>0</MinimumValue>
|
||||
<MaximumValue>16777214</MaximumValue>
|
||||
<ValidationMessage>Must be a number between 0 and 16777214.</ValidationMessage>
|
||||
</originatemetric>
|
||||
<passiveinterfaces type="InterfaceField">
|
||||
<Required>N</Required>
|
||||
<multiple>Y</multiple>
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ router ospf
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.quagga.ospf.originate') and OPNsense.quagga.ospf.originate == '1' %}
|
||||
default-information originate{% if helpers.exists('OPNsense.quagga.ospf.originatealways') and OPNsense.quagga.ospf.originatealways == '1' %} always {% endif %}
|
||||
default-information originate{% if helpers.exists('OPNsense.quagga.ospf.originatealways') and OPNsense.quagga.ospf.originatealways == '1' %} always {% endif %}{% if helpers.exists('OPNsense.quagga.ospf.originatemetric') and OPNsense.quagga.ospf.originatemetric != '' %} metric {{ OPNsense.quagga.ospf.originatemetric }}{% endif %}
|
||||
|
||||
{% endif %}
|
||||
!
|
||||
|
|
|
|||
Loading…
Reference in a new issue