feat(access-point): declared AP writes and a DHCP lease reader, 4.54.0 (NetOrk/netork#695) #142

Merged
christianmanivong merged 4 commits from feature/ap-dhcp-contracts-695 into main 2026-11-29 22:03:14 +00:00
4 Commits
Author SHA1 Message Date
christianmanivong eb8b2dbea7 chore(release): 4.54.0
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Successful in 18s
driver / types (pull_request) Successful in 56s
driver / lowest (pull_request) Successful in 42s
driver / test (3.12) (pull_request) Successful in 1m11s
driver / test (3.13) (pull_request) Successful in 1m14s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 53s
CI / driver (pull_request) Successful in 1m49s
driver / publish (pull_request) Skipped
2026-11-29 20:48:04 +01:00
christianmanivong 2ad1ead2f5 refactor(access-point): the new shapes beside their declarations, models.py within its ratchet
DhcpLeaseDict lives in dhcp_leases, the AP shapes in
access_point_models; models.py stays at its recorded size.
2026-11-29 20:48:04 +01:00
christianmanivong 0db9c9ba65 feat(access-point): declared writes for SSIDs, radios, VLAN names and the AP configuration, and a DHCP lease reader (NetOrk/netork#695)
WirelessWritesMixin declares push_ssid_config(ssid, SsidConfigDict), a
partial write, and set_radio_channels({radio: channel}), every radio in
one restart; AccessPointDriver and ResidentialGatewayDriver carry it.
AccessPointDriver declares set_vlan_name(vlan_id, name) and, through
ApConfigMixin, apply_ap_config(ApConfigDict, parts): the desired state
in vendor-neutral terms, of which the driver writes the parts the caller
found different, answered by ApConfigResultDict. The part names and
their I/O-free readers live in ap_config.

DhcpLeasesMixin declares get_dhcp_leases() with DhcpLeaseDict, apart
from DhcpServerMixin, so an access point can report the leases it serves.
2026-11-29 20:27:31 +01:00
christianmanivong 059d97f6de feat(updates): apply_updates takes an optional log callback (NetOrk/netork#1112)
UpdateMixin.apply_updates declares a keyword-only log, as
harden_ssh_server does: it receives each line of the package manager's
output as the host prints it. A driver that cannot stream does not call
it and returns the output at the end, as before; the declaration stays
compatible with every driver that implements it without the keyword.
2026-11-29 20:18:31 +01:00