I wish to be able use a script to create simple queues and child queues using variables defined in the script – means i don’t have to change the script only the variables.
At present i can create the parent via script however the max-limit= and limit-at will not accept upload/download variables. it will accept single variable only and then creates the queue with max-download=unlimited.
This then creates problem on creation of child queues to this parent as the download-max is smaller than the download.
Example of what im trying to achieve below - Overall objective is to have a single script that can have variables edited and not have to change the entire script for different applications.
obviously ive only included one child queue but there are more.
:global name value=Works-Depot
:global port value=ether8-Hotspot
:global upload value=10200k
:global download value=10200k
/queue simple
add name=$name queue=default/default target=$port max-limit=$upload/$download
add name=“$name-voip” max-limit=$upload limit-at=$limit-up/$limit-down packet-marks=
DSCP.46 parent=$name priority=1/1 queue=default/default
target=$port