Commit 58edd852 authored by Ad Schellevis's avatar Ad Schellevis

(traffic shaper) work in progress model and config template

parent b668fdeb
......@@ -14,7 +14,8 @@
</number>
<bandwidth type="IntegerField">
<Required>Y</Required>
<default>899795</default>
<MinimumValue>1</MinimumValue>
<MaximumValue>899795</MaximumValue>
</bandwidth>
<bandwidthMetric type="OptionField">
<Required>Y</Required>
......@@ -28,8 +29,6 @@
</bandwidthMetric>
<queue type="IntegerField">
<Required>N</Required>
<MinimumValue>1</MinimumValue>
<MaximumValue>100</MaximumValue>
</queue>
<queueMetric type="OptionField">
<Required>N</Required>
......
......@@ -27,8 +27,13 @@ flush
#======================================================================================
# define dummynet pipes
#======================================================================================
{% if helpers.exists('OPNsense.TrafficShaper.pipe') %}
{% if helpers.exists('OPNsense.TrafficShaper.pipes.pipe') %}
{% for pipe in OPNsense.TrafficShaper.pipes.pipe %}
ipfw pipe {{ pipe.number }} config bw {{ pipe.bandwidth }}{{ pipe.bandwidthMetric }}/s {%
if pipe.queue %} queue {{ pipe.queue }} {%
if pipe.queueMetric != 'slots' %} {{pipe.queueMetric}} {% endif %} {% endif %}
{% endfor %}
{% endif %}
#======================================================================================
......
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