package qos

config package
	option title 'Network quality of service'

config section
	option name	'interface'
	option title	'QoS interface section'
	option package	'qos'
	option named	true
	option required	true

config variable
	option name	'enabled'
	option title	'Enable QoS on this interface'
	option section	'qos.interface'

config variable
	option name	'overhead'
	option title	'Calculate overhead bandwidth'
	option section	'qos.interface'
	option datatype	'boolean'

config variable
	option name	'halfduplex'
	option title	'Half-duplex link'
	option section	'qos.interface'
	option datatype	'boolean'

config variable
	option name	'classgroup'
	option title	'QoS classification'
	option section	'qos.interface'
	option valueof	'qos.classgroup'

config variable
	option name	'download'
	option title	'Maximum download speed in kBits/s'
	option section	'qos.interface'
	option datatype	'integer'

config variable
	option name	'upload'
	option title	'Maximum upload speed in kBits/s'
	option section	'qos.interface'
	option datatype	'integer'


config section
	option name	'class'
	option title	'QoS traffic class definition'
	option package	'qos'
	option named	true
	option required	true

config variable
	option name	'avgrate'
	option title	'Average rate'
	option section	'qos.class'
	option datatype	'integer'

config variable
	option name	'maxsize'
	option title	'Maximum size'
	option section	'qos.class'
	option datatype	'integer'

config variable
	option name	'packetdelay'
	option title	'Packet delay'
	option section	'qos.class'
	option datatype	'integer'

config variable
	option name	'packetsize'
	option title	'Packet size'
	option section	'qos.class'
	option datatype	'integer'

config variable
	option name	'priority'
	option title	'QoS priority'
	option section	'qos.class'
	option datatype	'integer'


config section
	option name	'classgroup'
	option title	'QoS classification group'
	option package	'qos'
	option named	true

config variable
	option name	'classes'
	option title	'Defined QoS classes in group'
	option section	'qos.classgroup'

config variable
	option name	'default'
	option title	'Default QoS class in group'
	option section	'qos.classgroup'
	option valueof	'qos.class'


config section
	option name	'default'
	option title	'QoS default classification'
	option package	'qos'
	list   depends  'target, pktsize'
	list   depends  'target, portrange'
	list   depends  'target, proto'

config variable
	option name	'pktsize'
	option title	'Match by packet size'
	option section	'qos.default'
	option datatype	'integer'

config variable
	option name	'portrange'
	option title	'Match by port range'
	option section	'qos.default'

config variable
	option name	'proto'
	option title	'Match by layer 3 protocol'
	option section	'qos.default'

config variable
	option name	'target'
	option title	'Option target'
	option section	'qos.default'
	option valueof	'qos.class'
	option required true


config section
	option name	'classify'
	option title	'QoS classification rule'
	option package	'qos'

config variable
	option name	'ipp2p'
	option title	'Match by ipp2p'
	option section	'qos.classify'

config variable
	option name	'layer7'
	option title	'Match by layer 7 protocol'
	option section	'qos.classify'

config variable
	option name	'ports'
	option title	'Match by ports'
	option section	'qos.classify'

config variable
	option name	'proto'
	option title	'Match by layer 3 protocol'
	option section	'qos.classify'

config variable
	option name	'tcpflags'
	option title	'Match by TCP flags'
	option section	'qos.classify'

config variable
	option name	'target'
	option title	'QoS target class'
	option section	'qos.classify'
	option valueof	'qos.class'
	option required true


config section
	option name	'reclassify'
	option title	'QoS reclassification rule'
	option package	'qos'

config variable
	option name	'mark'
	option title	'Match by classification mark'
	option section	'qos.reclassify'

config variable
	option name	'pktsize'
	option title	'Match by packet size'
	option section	'qos.reclassify'
	option datatype	'integer'

config variable
	option name	'proto'
	option title	'Match by layer 3 protocol'
	option section	'qos.reclassify'

config variable
	option name	'tcpflags'
	option title	'Match by TCP flags'
	option section	'qos.reclassify'

config variable
	option name	'target'
	option title	'QoS classification target'
	option section	'qos.reclassify'
	option valueof	'qos.class'
	option required true
