net/haproxy: switch to TextField to support time format

This commit is contained in:
Frank Wall
2017-02-07 18:32:54 +01:00
committed by Franco Fichtner
parent 0db7b0db34
commit b2494970c7
@@ -610,17 +610,13 @@
<ValidationMessage>Please specify a value between 0 and 256.</ValidationMessage>
<Required>N</Required>
</weight>
<checkInterval type="IntegerField">
<checkInterval type="TextField">
<default>2s</default>
<MinimumValue>1</MinimumValue>
<MaximumValue>10000000</MaximumValue>
<mask>/^([0-9]{1,8}(?:us|ms|s|m|h|d)?)/u</mask>
<ValidationMessage>Should be a number between 1 and 8 characters, optionally followed by either "d", "h", "m", "s", "ms" or "us".</ValidationMessage>
<Required>Y</Required>
</checkInterval>
<checkDownInterval type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>10000000</MaximumValue>
<checkDownInterval type="TextField">
<mask>/^([0-9]{1,8}(?:us|ms|s|m|h|d)?)/u</mask>
<ValidationMessage>Should be a number between 1 and 8 characters, optionally followed by either "d", "h", "m", "s", "ms" or "us".</ValidationMessage>
<Required>N</Required>