feat: reboot_host (0.5.0) #17

Merged
christianmanivong merged 1 commits from feat/reboot-host into master 2026-10-18 12:48:21 +00:00
Owner

reboot_host() (napalm-device-types HostRebootMixin, carried by AccessPointDriver) over run_command: reboot detached with trap '' HUP and two seconds late, the pattern napalm-linux uses, so the answer comes back before the session goes down. A refusal (exit code) raises RuntimeError; a login other than root is refused before anything runs.

netOrk sent /sbin/reboot through the private _send_command and treated any answer as success (NetOrk/netork#1113).

Part of #13

`reboot_host()` (napalm-device-types `HostRebootMixin`, carried by `AccessPointDriver`) over `run_command`: `reboot` detached with `trap '' HUP` and two seconds late, the pattern napalm-linux uses, so the answer comes back before the session goes down. A refusal (exit code) raises `RuntimeError`; a login other than root is refused before anything runs. netOrk sent `/sbin/reboot` through the private `_send_command` and treated any answer as success (NetOrk/netork#1113). Part of #13
christianmanivong added 1 commit 2026-10-18 12:45:44 +00:00
feat: reboot_host (0.5.0)
CI / test (3.10) (push) Successful in 26s
CI / test (3.11) (push) Successful in 23s
CI / test (3.12) (push) Successful in 26s
CI / test (3.10) (pull_request) Successful in 25s
CI / test (3.11) (pull_request) Successful in 24s
CI / test (3.12) (pull_request) Successful in 25s
d89bb38688
HostRebootMixin's reboot_host over the command channel: reboot detached
and two seconds late, so the answer comes back before the session goes
down, and a refusal is raised instead of being mistaken for the dropped
session. netOrk sent /sbin/reboot through the private _send_command and
could not tell the two apart (netOrk #1113). A login other than root is
refused before anything runs.
christianmanivong merged commit fddb5c6772 into master 2026-10-18 12:48:21 +00:00
christianmanivong deleted branch feat/reboot-host 2026-10-18 12:48:21 +00:00
Sign in to join this conversation.