diff options
author | Florian Eckert <fe@dev.tdt.de> | 2021-04-13 11:30:33 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-04-17 21:56:05 +0200 |
commit | 4407d45d9667ab3d376ad4a6b760e07f4dd43e49 (patch) | |
tree | 9ef9456433bd33233e164ffe89ab555ba4434923 /package/network/utils/comgt/files/getstrength.gcom | |
parent | 86d5ac46404317b4a77e2aa662d6406547e07e2c (diff) | |
download | upstream-4407d45d9667ab3d376ad4a6b760e07f4dd43e49.tar.gz upstream-4407d45d9667ab3d376ad4a6b760e07f4dd43e49.tar.bz2 upstream-4407d45d9667ab3d376ad4a6b760e07f4dd43e49.zip |
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>
Diffstat (limited to 'package/network/utils/comgt/files/getstrength.gcom')
0 files changed, 0 insertions, 0 deletions