mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Enable Area on a per Interface basis instead of just on router. (#1457)
This commit is contained in:
committed by
Franco Fichtner
parent
89f57e69db
commit
6b8d0f9bc1
+6
@@ -26,6 +26,12 @@
|
||||
<advanced>true</advanced>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>interface.area</id>
|
||||
<label>Area</label>
|
||||
<type>text</type>
|
||||
<help>Area in wildcard mask style like 0.0.0.0 and no decimal 0</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>interface.cost</id>
|
||||
<label>Cost</label>
|
||||
|
||||
@@ -153,6 +153,11 @@
|
||||
<Required>Y</Required>
|
||||
<ValidationMessage>The authentication key ID must be between 1 and 255.</ValidationMessage>
|
||||
</authkey_id>
|
||||
<area type="TextField">
|
||||
<default></default>
|
||||
<Required>N</Required>
|
||||
<mask>/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/</mask>
|
||||
</area>
|
||||
<cost type="IntegerField">
|
||||
<default></default>
|
||||
<MinimumValue>0</MinimumValue>
|
||||
|
||||
@@ -29,7 +29,8 @@ interface {{ physical_interface(interface.interfacename) }}
|
||||
}}{% if interface.authtype and interface.authtype == 'message-digest'
|
||||
%}{{ cline("message-digest-key " + interface.authkey_id + " md5",interface.authkey)
|
||||
}}{% endif
|
||||
%}{{ cline("cost",interface.cost)
|
||||
%}{{ cline("area",interface.area)
|
||||
}}{{ cline("cost",interface.cost)
|
||||
}}{{ cline("dead-interval",interface.deadinterval)
|
||||
}}{{ cline("hello-interval",interface.hellointerval)
|
||||
}}{{ cline("priority",interface.priority)
|
||||
|
||||
Reference in New Issue
Block a user