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
This commit is contained in:
Christian Manivong committed 2026-11-29 22:43:34 +01:00
1 parent f71c12dfb6
commit 9bac9bd1af
6 files changed
+350 -98

No files matched your search

+6 -1
View File
@@ -47,10 +47,15 @@ def sq(value: object) -> str:
@dataclass
class Plan:
"""The commands built so far, and the configs they stage for a commit."""
"""The commands built so far, the configs they stage for a commit, and what runs live.
``commands`` only stage UCI changes, which the device does not run until they are
committed; ``actions`` change the running device and come after the commits.
"""
commands: list[str] = field(default_factory=list)
commits: set[str] = field(default_factory=set)
actions: list[str] = field(default_factory=list)
@dataclass(frozen=True)