fix!: reboot_host instead of reboot; drop run_device_action (0.2.0) #7

Merged
christianmanivong merged 1 commits from fix/reboot-host into master 2026-10-17 06:59:43 +00:00
Owner
  • reboot_host() per HostRebootMixin (raises when refused): the application looks for it, so the gateway was not restartable (#5).
  • run_device_action gone; restart_wifi(band) and get_diagnostics() are methods.

Part of NetOrk/netork#1105. Closes #5, part of #6.

- `reboot_host()` per `HostRebootMixin` (raises when refused): the application looks for it, so the gateway was not restartable (#5). - `run_device_action` gone; `restart_wifi(band)` and `get_diagnostics()` are methods. Part of NetOrk/netork#1105. Closes #5, part of #6.
christianmanivong added 1 commit 2026-10-17 06:40:28 +00:00
fix!: reboot_host instead of reboot; drop run_device_action (0.2.0)
CI / test (3.10) (push) Successful in 3m5s
CI / test (3.11) (push) Successful in 23s
CI / test (3.12) (push) Successful in 24s
CI / test (3.10) (pull_request) Successful in 3m3s
CI / test (3.11) (pull_request) Successful in 23s
CI / test (3.12) (pull_request) Successful in 24s
210f00f5e7
The gateway had reboot(), but the contract (HostRebootMixin) and the
application look for reboot_host(), so the gateway could not be
restarted from it. reboot_host() returns None and raises when the
gateway refuses, as the contract says.

run_device_action dispatched reboot, restart_wifi[:band] and
get_diagnostics by string, with a result shape other than its
contract's. restart_wifi(band) and get_diagnostics() are methods now;
napalm-device-types deprecates run_device_action.

BREAKING CHANGE: reboot() and run_device_action are removed.

Closes #5. Part of #6.
christianmanivong merged commit f94c0a3171 into master 2026-10-17 06:59:43 +00:00
christianmanivong deleted branch fix/reboot-host 2026-10-17 06:59:43 +00:00
Sign in to join this conversation.