mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-05 06:02:29 +00:00
qosify: add missing alias support in the init script
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
e7d0dce2b3
commit
9bd9e04b6f
@ -71,6 +71,20 @@ add_interface() {
|
||||
json_close_object
|
||||
}
|
||||
|
||||
add_alias() {
|
||||
local cfg="$1"
|
||||
|
||||
config_get value "$cfg" value
|
||||
config_get ingress "$cfg" ingress
|
||||
config_get egress "$cfg" egress
|
||||
|
||||
json_add_array "$cfg"
|
||||
json_add_string ingress "${ingress:-$value}"
|
||||
json_add_string egress "${egress:-$value}"
|
||||
json_close_array
|
||||
}
|
||||
|
||||
|
||||
reload_service() {
|
||||
json_init
|
||||
|
||||
@ -82,6 +96,10 @@ reload_service() {
|
||||
config_foreach add_interface interface
|
||||
json_close_object
|
||||
|
||||
json_add_object aliases
|
||||
config_foreach add_alias alias
|
||||
json_close_object
|
||||
|
||||
json_add_object devices
|
||||
config_foreach add_interface device
|
||||
json_close_object
|
||||
|
Loading…
Reference in New Issue
Block a user