openwrt/package/network/config
Florian Eckert 0ad52076e2 ltq-vdsl-app: extent dsl metrics with state_num and power_state_num
With the old ubus dsl API, the numbers for the individual line_states and
power_states were also returned. These were not ported to the new DSL
C-API. This commit adds the missing information.

For this the internal values are mapped to numbers.

* additional JSON output for state_num:
"state_num": <map_state_number>

Since not all values are meaningful only the following values are
implemented, this can be extended if the future.

* LSTATE_MAP_NOT_INITIALIZED
* LSTATE_MAP_EXCEPTION
* LSTATE_MAP_IDLE
* LSTATE_MAP_SILENT
* LSTATE_MAP_HANDSHAKE
* LSTATE_MAP_FULL_INIT
* LSTATE_MAP_SHOWTIME_NO_SYNC
* LSTATE_MAP_SHOWTIME_TC_SYNC
* LSTATE_MAP_RESYNC

* additinal JSON output for power_level:
"power_state_num": <map_power_satte_number>,

Since there are not so many here, all are mapped.

* PSTATE_MAP_NA,
* PSTATE_MAP_L0,
* PSTATE_MAP_L1,
* PSTATE_MAP_L2,
* PSTATE_MAP_L3,

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
v6:
Add state LSTATE_MAP_NOT_INITILIZED at the beginning of the list
Start the list LSTATE_MAP with -1
Reviewed-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:08:00 +00:00
..
firewall firewall: update to latest git HEAD 2021-09-01 08:07:53 +00:00
firewall4 firewall4: update to latest Git HEAD 2021-09-01 08:07:54 +00:00
gre gre: use alternative way to check if kernel support is enabled 2021-09-01 08:07:48 +00:00
ipip package: drop PKG_VERSION for purely local packages 2020-07-15 18:33:56 +02:00
ltq-adsl-app ltq-adsl-app: use ubus to provide metrics 2021-09-01 08:07:34 +00:00
ltq-vdsl-app ltq-vdsl-app: extent dsl metrics with state_num and power_state_num 2021-09-01 08:08:00 +00:00
netifd netifd: read udhcpc user scripts from directory 2021-09-01 08:07:59 +00:00
qos-scripts package: replace remaining occurrences of ifconfig with ip 2020-08-03 10:42:35 +02:00
soloscli soloscli: fix uci-defaults file 2020-06-11 01:49:24 +02:00
swconfig swconfig: Activate LTO compile option 2019-11-08 23:57:53 +01:00
vti vti: use alternative way to check if kernel support is enabled 2021-09-01 08:07:48 +00:00
vxlan vxlan: allow for dynamic source ip selection (FS#3426) 2021-09-01 08:07:25 +00:00
xfrm xfrm: simplify the check for necessary kernel support 2021-09-01 08:07:48 +00:00