PKG_NAME:=qosify
PKG_SOURCE_URL=$(PROJECT_GIT)/project/qosify.git
PKG_SOURCE_PROTO:=git
-PKG_SOURCE_DATE:=2021-11-12
-PKG_SOURCE_VERSION:=bfc2cafe2a8c66ffab88a7e5c1ad1b0a4d886271
-PKG_MIRROR_HASH:=88990d5816f37ba1e334499e7ee53a364fa0ba1e5751a91ef0a94934cd2a5451
+PKG_SOURCE_DATE:=2021-11-19
+PKG_SOURCE_VERSION:=e728a319a9a5ac692d18fef936e6ac4377f1bbf1
+PKG_MIRROR_HASH:=86362483e4462a9dc4c4c31363a9a43a140472f105da363053e07e2486fff24f
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
[ -n "$val" ] && json_add_$type "$name" "$val"
}
+add_flow_config() {
+ local cfg="$1"
+
+ add_option string dscp_prio
+ add_option string dscp_bulk
+ add_option int bulk_trigger_timeout
+ add_option int bulk_trigger_pps
+ add_option int prio_max_avg_pkt_len
+}
+
add_defaults() {
cfg="$1"
done
json_close_array
+ add_flow_config "$cfg"
add_option int timeout
- add_option string dscp_prio
- add_option string dscp_bulk
add_option string dscp_icmp
add_option string dscp_default_udp
add_option string dscp_default_tcp
- add_option int bulk_trigger_timeout
- add_option int bulk_trigger_pps
- add_option int prio_max_avg_pkt_len
}
add_interface() {
json_close_object
}
-add_alias() {
+add_class() {
local cfg="$1"
config_get value "$cfg" value
config_get ingress "$cfg" ingress
config_get egress "$cfg" egress
- json_add_array "$cfg"
+ json_add_object "$cfg"
json_add_string ingress "${ingress:-$value}"
json_add_string egress "${egress:-$value}"
- json_close_array
+ add_flow_config "$cfg"
+ json_close_object
}
config_foreach add_interface interface
json_close_object
- json_add_object aliases
- config_foreach add_alias alias
+ json_add_object classes
+ config_foreach add_class class
+ config_foreach add_class alias
json_close_object
json_add_object devices