Commit c5d5e635 authored by Ad Schellevis's avatar Ad Schellevis

(proxy) add constraint, closes https://github.com/opnsense/core/issues/1106

parent dee4efb3
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment