Files
napalm-linux/tests
Christian Manivong f876ac4598 feat(power): shutdown_host through HostShutdownMixin, 0.25.0 (NetOrk/netork#2841)
The host's clean shutdown next to reboot_host: /sbin/poweroff as root,
detached and two seconds late like the restart, so the exit status comes
back before the session drops. A refusal raises RuntimeError with what
the host said, plus the sudo password hint where sudo wanted one.

poweroff rather than shutdown -h now: systemd links it to systemctl
poweroff, sysvinit and BusyBox ship it themselves, while BusyBox has no
shutdown and sysvinit's -h may only halt.
2026-11-29 11:28:38 +01:00
..