feat(power): reboot_host and shutdown_host on FreeBSD and OpenBSD (NetOrk/netork#2841) #36

Merged
christianmanivong merged 1 commits from feature/host-shutdown-2841 into main 2026-11-29 21:58:22 +00:00
1 Commits
Author SHA1 Message Date
Christian Manivong 4532c0ea1c feat(power): reboot_host and shutdown_host on FreeBSD and OpenBSD (NetOrk/netork#2841)
driver / lint (pull_request) Successful in 12s
driver / standard (pull_request) Successful in 14s
driver / lowest (pull_request) Successful in 28s
driver / test (3.12) (pull_request) Successful in 54s
driver / types (pull_request) Successful in 57s
driver / test (3.13) (pull_request) Successful in 54s
driver / build (pull_request) Successful in 25s
driver / security (pull_request) Successful in 54s
CI / driver (pull_request) Successful in 1m59s
driver / publish (pull_request) Skipped
The host's restart and its clean shutdown, through napalm-device-types'
HostRebootMixin and HostShutdownMixin: shutdown -r now and shutdown -p now
as root, through the driver's sudo, detached and two seconds late, so the
exit status comes back before the session drops and closing the session
cannot take the command with it. A refusal raises RuntimeError with what
the host said.
2026-11-29 11:30:30 +01:00