mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
- All params apart from ifname converted to intergers. - Output of stats for a particular interface now available. - The ubus call accepts qid as integer.
25 lines
359 B
Bash
Executable file
25 lines
359 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. /usr/share/libubox/jshn.sh
|
|
. /lib/functions.sh
|
|
include /lib/qos
|
|
|
|
case "$1" in
|
|
list)
|
|
echo '{ "queue_stats": { "ifname":"String", "qid":"Integer" } }'
|
|
|
|
;;
|
|
call)
|
|
case "$2" in
|
|
queue_stats)
|
|
read input;
|
|
json_load "$input"
|
|
json_get_var iface ifname
|
|
json_get_var qid qid
|
|
|
|
read_queue_stats $iface $qid
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
|