Commit graph

5 commits

Author SHA1 Message Date
Jo-Philipp Wich
005c09a293 luci-app-sqm: only reload view once sqm enable/start completed
Chain the exec calls to enable and start the SQM service and only reload
the view once these operations are complete and return the entire promise
chain from the handler function to ensure that the busy indicator remains
active throughout the entire duration of the operation.

Also replace exec_direct() with exec() as there is no need to bypass ubus
for the init script calls.

Fixes: e76d9cc767 ("luci-app-sqm: fix JS error if service is disabled")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-13 08:59:40 +02:00
Dirk Brenken
e76d9cc767
luci-app-sqm: fix JS error if service is disabled
* fix a 'resource not found error' if the sqm service has been disabled
  and the dir '/var/run/sqm/available_qdiscs' not exist
* inform the user about this issue and provide a button
  to enable & start the service

Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-06-09 22:36:32 +02:00
Toke Høiland-Jørgensen
96b8f43f6b luci-app-sqm: Use CAKE as default qdisc
The sqm-scripts package depends on kmod-sched-cake, meaning CAKE is always
available in normal installs. So we might as well just make CAKE the
default config in SQM configs.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2020-12-31 17:13:49 +01:00
Ansuel Smith
5a6037a258 luci-app-sqm: fix missing interface in selection
Show device instead of interface in interface selection.

Fixes: #4539
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-25 14:46:36 +01:00
Ansuel Smith
63aea8f848 luci-app-sqm: convert to client side implementation
Convert sqm app to client side implementation. Only a small rework in the logic to get qos scripts help text. The rest of the script is a porting 1:1.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-23 23:05:14 +02:00