Dynamic Service Classes
Posted: Wed Sep 05, 2018 10:58 pm
Hello,
I want to dynamically change the class to specific "match criteria".
I tested the following and it seems to work (sleeps are to provide som settle time, not sure if is beneficial or detrimental):
With this script, I am changing a group to a throttling class.
However, I think that the router is left is in a state where some things do not work well, or at least consistently.
For instance, I had seen the BW monitoring stop working and loss of internet connection. Or the web interface not behaving as usual.
Would someone please advise:
Am I executing the commands in the correct order?
Am I missing a command?
Thanks in advance for any help.
I want to dynamically change the class to specific "match criteria".
I tested the following and it seems to work (sleeps are to provide som settle time, not sure if is beneficial or detrimental):
Code: Select all
throttle.sh
/sbin/uci set qos_gargoyle.download_rule_400.class=dclass_6
/sbin/uci set qos_gargoyle.upload_rule_400.class=uclass_6
sleep 5
/etc/init.d/qos_gargoyle restart
sleep 5
/etc/init.d/firewall restart
sleep 5
/etc/init.d/bwmon_gargoyle restart
However, I think that the router is left is in a state where some things do not work well, or at least consistently.
For instance, I had seen the BW monitoring stop working and loss of internet connection. Or the web interface not behaving as usual.
Would someone please advise:
Am I executing the commands in the correct order?
Am I missing a command?
Thanks in advance for any help.