Commit 8b994d62 authored by Ad Schellevis's avatar Ad Schellevis

(traffic shaper) work in progress integrating dummynet pipes

parent 8cefe409
...@@ -4,45 +4,47 @@ ...@@ -4,45 +4,47 @@
OPNsense traffic shaper OPNsense traffic shaper
</description> </description>
<items> <items>
<pipe type="ArrayField"> <pipes>
<number type="IntegerField"> <pipe type="ArrayField">
<MinimumValue>1</MinimumValue> <number type="IntegerField">
<MaximumValue>65535</MaximumValue> <MinimumValue>1</MinimumValue>
<ValidationMessage></ValidationMessage> <MaximumValue>65535</MaximumValue>
<Required>Y</Required> <ValidationMessage></ValidationMessage>
</number> <Required>Y</Required>
<bandwidth type="IntegerField"> </number>
<Required>Y</Required> <bandwidth type="IntegerField">
<default>899795</default> <Required>Y</Required>
</bandwidth> <default>899795</default>
<bandwidthMetric type="OptionField"> </bandwidth>
<Required>Y</Required> <bandwidthMetric type="OptionField">
<default>Kbit</default> <Required>Y</Required>
<OptionValues> <default>Kbit</default>
<bit>bit/s</bit> <OptionValues>
<Kbit>Kbit/s</Kbit> <bit>bit/s</bit>
<Mbit>Mbit/s</Mbit> <Kbit>Kbit/s</Kbit>
</OptionValues> <Mbit>Mbit/s</Mbit>
<ValidationMessage>Bandwidth metric should be one of bit,Kbit,Mbit</ValidationMessage> </OptionValues>
</bandwidthMetric> <ValidationMessage>Bandwidth metric should be one of bit,Kbit,Mbit</ValidationMessage>
<queue type="IntegerField"> </bandwidthMetric>
<Required>N</Required> <queue type="IntegerField">
<MinimumValue>1</MinimumValue> <Required>N</Required>
<MaximumValue>100</MaximumValue> <MinimumValue>1</MinimumValue>
</queue> <MaximumValue>100</MaximumValue>
<queueMetric type="OptionField"> </queue>
<Required>N</Required> <queueMetric type="OptionField">
<default>slots</default> <Required>N</Required>
<OptionValues> <default>slots</default>
<slots>Slots</slots> <OptionValues>
<bit>bit/s</bit> <slots>Slots</slots>
<Kbit>Kbit/s</Kbit> <bit>bit/s</bit>
<Mbit>Mbit/s</Mbit> <Kbit>Kbit/s</Kbit>
</OptionValues> <Mbit>Mbit/s</Mbit>
</queueMetric> </OptionValues>
<description type="TextField"> </queueMetric>
<Required>N</Required> <description type="TextField">
</description> <Required>N</Required>
</pipe> </description>
</pipe>
</pipes>
</items> </items>
</model> </model>
...@@ -24,6 +24,13 @@ ...@@ -24,6 +24,13 @@
#====================================================================================== #======================================================================================
flush flush
#======================================================================================
# define dummynet pipes
#======================================================================================
{% if helpers.exists('OPNsense.TrafficShaper.pipe') %}
{% endif %}
#====================================================================================== #======================================================================================
# general purpose rules 1...1000 # general purpose rules 1...1000
#====================================================================================== #======================================================================================
......
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