docs: no services restart reading on the BSDs, and a test that keeps it so (NetOrk/netork#2750)
driver / standard (pull_request) Successful in 19s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m2s
driver / test (3.12) (pull_request) Successful in 1m7s
driver / test (3.13) (pull_request) Successful in 1m0s
driver / lowest (pull_request) Successful in 36s
driver / build (pull_request) Successful in 34s
driver / security (pull_request) Successful in 1m9s
CI / driver (pull_request) Successful in 2m51s
driver / publish (pull_request) Skipped

napalm-device-types' ServicesRestartMixin reads needrestart or
/proc/<pid>/maps and names systemd units by cgroup; a BSD has none of
them. Without the method the caller shows the reading as not made, not as
clean. A FreeBSD reading of its own is #33.
This commit is contained in:
Christian Manivong committed 2026-11-26 18:56:05 +01:00
1 parent 7c6c53d142
commit 6ecab1cbe2
2 files changed
+18

No files matched your search

+7
View File
@@ -55,6 +55,13 @@ There is deliberately no `get_kernel_facts`: `KernelFactsMixin` reports a
Linux kernel's modules and `CONFIG_*` options, which a BSD kernel does not
have, and `hasattr(driver, "get_kernel_facts")` has to stay truthful.
Nor is there a `get_services_need_restart` (napalm-device-types'
`ServicesRestartMixin`, NetOrk/netork#2750): it reads `needrestart` or each
process's `/proc/<pid>/maps` and names systemd units by cgroup, none of which a
BSD has. Mixed in, it would read nothing, or read clean; without it the caller
knows the reading was not made. A FreeBSD reading of its own (`procstat -v`, the
rc.d service behind each PID) is #33.
**Updates.** `security` on FreeBSD comes from VuXML (`pkg audit`): True for a
package it lists as vulnerable, False for one it does not, None when the audit
could not run. OpenBSD's tools do not say, so it is None there. Base-system