mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
(proxy) add constraint, closes https://github.com/opnsense/core/issues/1106
This commit is contained in:
parent
dee4efb3ad
commit
c5d5e6358a
@ -152,12 +152,26 @@
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<ValidationMessage>Specify the overall bandwidth for downloads in kilobits per second.</ValidationMessage>
|
||||
<Required>N</Required>
|
||||
<Constraints>
|
||||
<check001>
|
||||
<ValidationMessage>Both trotteling parameters should either be filled or empty</ValidationMessage>
|
||||
<type>OPNsense\Base\Constraints\AllOrNoneConstraint</type>
|
||||
<addFields>
|
||||
<field1>perHostTrotteling</field1>
|
||||
</addFields>
|
||||
</check001>
|
||||
</Constraints>
|
||||
</OverallBandwidthTrotteling>
|
||||
<perHostTrotteling type="IntegerField">
|
||||
<default>256</default>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<ValidationMessage>Specify the per host bandwidth for downloads in kilobits per second.</ValidationMessage>
|
||||
<Required>N</Required>
|
||||
<Constraints>
|
||||
<check001>
|
||||
<reference>OverallBandwidthTrotteling.check001</reference>
|
||||
</check001>
|
||||
</Constraints>
|
||||
</perHostTrotteling>
|
||||
</traffic>
|
||||
</general>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user