mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
Add delay option to pipe in Traffic Shaper (#2297)
This commit is contained in:
parent
90e8e5fe20
commit
c2d4ead250
@ -88,6 +88,13 @@
|
||||
<advanced>true</advanced>
|
||||
<help>The number of flow queues that are created and managed, leave empty for defaults</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>pipe.delay</id>
|
||||
<label>Delay</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Add delay in ms to this pipe.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>pipe.description</id>
|
||||
<label>description</label>
|
||||
|
||||
@ -97,6 +97,12 @@
|
||||
<mask>/^([a-z,A-Z,1-9]){0,30}$/</mask>
|
||||
<ValidationMessage>Origin should be regular text of max 30 characters</ValidationMessage>
|
||||
</origin>
|
||||
<delay type="IntegerField">
|
||||
<Required>N</Required>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>3000</MaximumValue>
|
||||
<ValidationMessage>Please choose a value between 1 and 3000</ValidationMessage>
|
||||
</delay>
|
||||
<description type="TextField">
|
||||
<Required>Y</Required>
|
||||
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.\-,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
|
||||
|
||||
@ -41,6 +41,7 @@ pipe {{ pipe.number }} config bw {{ pipe.bandwidth }}{{ pipe.bandwidthMetric }}/
|
||||
if pipe.queueMetric != 'slots' %}{{pipe.queueMetric}}{% endif %}{% endif
|
||||
%}{% if pipe.mask != 'none' %} mask {{ pipe.mask }} 0xffffffff {% endif %} type {%
|
||||
if pipe.scheduler|default('') != '' %} {{pipe.scheduler}} {% else %} wf2q+ {% endif %}{%
|
||||
if pipe.delay|default('') != '' %} delay {{pipe.delay}} {% endif %}{%
|
||||
if pipe.codel_enable|default('0') == '1' and pipe.scheduler != 'fq_codel' %} codel {% endif %}{%
|
||||
if pipe.codel_enable|default('0') == '1' or pipe.scheduler == 'fq_codel' %}{%
|
||||
if pipe.codel_target|default('') != ''%} target {{pipe.codel_target}} {% endif %}{%
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user