feat(wireless): get_radio_status says whether each radio runs, 0.10.0 (NetOrk/netork#31) #53

Merged
christianmanivong merged 2 commits from feature/radio-runtime-state into main 2026-11-28 02:07:51 +00:00
Owner

get_radio_status() adds up, pending and setup_failed per radio from ubus call network.wireless status (netifd's retry_setup_failed for the last), beside the UCI configuration and iwinfo values it read before.

  • A key netifd does not answer with a boolean is left out, never guessed (before 19.07 netifd had no retry_setup_failed).
  • A failed, refused or broken-off call leaves all three out; the configuration stays.
  • A radio only ubus knows is not added.

The fields are napalm-device-types 4.49's RadioStatusDict; at runtime they are plain keys, so the lower bound stays. netOrk raises radio_down from them (NetOrk/netork#31).

Release 0.10.0.

`get_radio_status()` adds `up`, `pending` and `setup_failed` per radio from `ubus call network.wireless status` (netifd's `retry_setup_failed` for the last), beside the UCI configuration and iwinfo values it read before. - A key netifd does not answer with a boolean is left out, never guessed (before 19.07 netifd had no `retry_setup_failed`). - A failed, refused or broken-off call leaves all three out; the configuration stays. - A radio only ubus knows is not added. The fields are napalm-device-types 4.49's `RadioStatusDict`; at runtime they are plain keys, so the lower bound stays. netOrk raises `radio_down` from them (NetOrk/netork#31). Release 0.10.0.
christianmanivong added 2 commits 2026-11-28 02:02:42 +00:00
up, pending and setup_failed come from netifd (ubus call network.wireless
status, its retry_setup_failed for the last), beside the configuration read
before. A key netifd does not answer with a boolean is left out, and all
three are left out where the call fails or breaks off; the configuration
stays either way. On 2026-07-16 every radio of the fleet sat in a restart
loop with its configuration saying enabled; this is the state that showed it.

The htmode table moves to module level, which keeps get_radio_status within
the quality ratchet.
chore(release): 0.10.0
driver / lint (pull_request) Successful in 17s
driver / types (pull_request) Successful in 1m0s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / lowest (pull_request) Successful in 33s
driver / test (3.13) (pull_request) Successful in 1m4s
driver / build (pull_request) Successful in 32s
driver / standard (pull_request) Successful in 17s
driver / security (pull_request) Successful in 1m2s
CI / driver (pull_request) Successful in 2m40s
driver / publish (pull_request) Skipped
8539c4c8c7
christianmanivong merged commit dd3e3f1543 into main 2026-11-28 02:07:51 +00:00
christianmanivong deleted branch feature/radio-runtime-state 2026-11-28 02:07:51 +00:00
Sign in to join this conversation.