feat(access-point): declared AP writes, apply_ap_config and DHCP leases, 0.11.0 (NetOrk/netork#695) #55

Merged
christianmanivong merged 4 commits from feature/declared-ap-methods-695 into main 2026-11-29 22:45:01 +00:00
4 Commits
Author SHA1 Message Date
Christian Manivong 8132d89d99 ci: build against the released napalm-device-types 4.54.0
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 12s
driver / types (pull_request) Successful in 1m4s
driver / test (3.12) (pull_request) Successful in 1m4s
driver / lowest (pull_request) Successful in 34s
driver / test (3.13) (pull_request) Successful in 1m4s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 1m14s
CI / driver (pull_request) Successful in 2m34s
driver / publish (pull_request) Skipped
2026-11-29 23:03:57 +01:00
Christian Manivong 9bac9bd1af fix(access-point): a change the AP refuses in apply_ap_config is raised, and nothing applied (#54)
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 11s
driver / lowest (pull_request) Successful in 28s
driver / types (pull_request) Successful in 1m4s
driver / test (3.13) (pull_request) Successful in 54s
driver / test (3.12) (pull_request) Successful in 1m8s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Successful in 2m8s
driver / publish (pull_request) Skipped
The configuration ran as one detached script, so a refused uci step
only reached its log while the call reported the part as applied. The
changes are now staged by a script the call waits for: a uci wrapper
records each refused set, add, add_list or delete with its part, and at
the end every config is reverted and the script exits 3, which raises
CommandErrorException naming each part, passphrases masked. Quiet -q
calls stay tests. The commits, LuCI's service, the reloads and the
restart run detached afterwards, as before.

Closes #54
2026-11-29 22:43:34 +01:00
Christian Manivong f71c12dfb6 chore(release): 0.11.0 2026-11-29 20:51:27 +01:00
Christian Manivong 634bc9c793 feat(access-point): SSID settings, radio channels, VLAN names, the AP configuration and DHCP leases through declared methods (NetOrk/netork#695)
push_ssid_config, set_radio_channels and set_vlan_name run as checked
uci steps (#35): a refused step raises naming itself and reverts what
was staged. set_radio_channels replaces the undeclared push_radio_channel.

apply_ap_config takes napalm-device-types' ApConfigDict and the parts
the caller found different and writes them as one detached script: the
builder netOrk had in _uci_builders.py, moved here. It answers which
parts it wrote and which it could not, whether the AP restarts, and the
script with every passphrase masked. A passphrase part now writes the
key.

get_dhcp_leases reads dnsmasq's lease file.

Needs napalm-device-types 4.54.0; CI pre-installs it from its branch
until it is on PyPI.
2026-11-29 20:51:27 +01:00