feat: report a FreeBSD host as needing a reboot when its installed kernel is not the running one #23

Merged
christianmanivong merged 1 commits from feat/freebsd-host-status into main 2026-10-08 10:11:15 +00:00
Owner

HOST_STATUS_COMMAND also prints freebsd-version -k (installed kernel) and -r (running kernel) where freebsd-version exists. get_host_status reports the host as needing a reboot when the two differ ("kernel X installed, Y running") and as not needing one when they match. Other systems are unchanged.

The test fixture is the output recorded on a FreeBSD 15.1 host before its update.

Version 4.1.0. napalm-bsd uses this through HostStatusMixin (NetOrk/netork#799).

`HOST_STATUS_COMMAND` also prints `freebsd-version -k` (installed kernel) and `-r` (running kernel) where `freebsd-version` exists. `get_host_status` reports the host as needing a reboot when the two differ ("kernel X installed, Y running") and as not needing one when they match. Other systems are unchanged. The test fixture is the output recorded on a FreeBSD 15.1 host before its update. Version 4.1.0. napalm-bsd uses this through `HostStatusMixin` (NetOrk/netork#799).
christianmanivong added 1 commit 2026-10-08 10:08:28 +00:00
feat: report a FreeBSD host as needing a reboot when its installed kernel is not the running one
CI / test (3.10) (push) Successful in 25s
CI / test (3.11) (push) Successful in 22s
CI / test (3.12) (push) Successful in 23s
CI / test (3.10) (pull_request) Successful in 24s
CI / test (3.11) (pull_request) Successful in 22s
CI / test (3.12) (pull_request) Successful in 24s
e1ce72cc5c
HOST_STATUS_COMMAND also prints freebsd-version -k and -r where
freebsd-version exists. When the two differ, a kernel update was installed
and is not running yet, so the host needs a reboot. When they match, it does
not.
christianmanivong merged commit 8111c4cde3 into main 2026-10-08 10:11:15 +00:00
christianmanivong deleted branch feat/freebsd-host-status 2026-10-08 10:11:15 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-device-types#23