docs: no services restart reading on the BSDs, and a test that keeps it so (NetOrk/netork#2750) #34

Merged
christianmanivong merged 1 commits from docs/no-services-restart into main 2026-11-26 18:56:45 +00:00
Owner

NetOrk/netork#2750 asked whether the BSD drivers should carry napalm-device-types' new ServicesRestartMixin (get_services_need_restart, NAPALM/napalm-device-types#132). They should not: the mixin reads needs-restarting, needrestart or /proc/<pid>/maps and names systemd units through /proc/<pid>/cgroup, none of which FreeBSD or OpenBSD has. Mixed in, it would read nothing, or read clean. Without the method hasattr(driver, "get_services_need_restart") stays truthful and netOrk shows the reading as not made.

  • README: a paragraph next to the one on get_kernel_facts.
  • tests/test_drivers.py: neither driver offers get_services_need_restart or its transport. 100 passed locally.
  • A FreeBSD reading of its own (procstat -v, the rc.d service behind each PID) is #33, unbuilt until a host's output is recorded.

No code change, so no version bump and no dependency change; netOrk does not repin for it.

NetOrk/netork#2750 asked whether the BSD drivers should carry napalm-device-types' new `ServicesRestartMixin` (`get_services_need_restart`, NAPALM/napalm-device-types#132). They should not: the mixin reads `needs-restarting`, `needrestart` or `/proc/<pid>/maps` and names systemd units through `/proc/<pid>/cgroup`, none of which FreeBSD or OpenBSD has. Mixed in, it would read nothing, or read clean. Without the method `hasattr(driver, "get_services_need_restart")` stays truthful and netOrk shows the reading as not made. - README: a paragraph next to the one on `get_kernel_facts`. - `tests/test_drivers.py`: neither driver offers `get_services_need_restart` or its transport. 100 passed locally. - A FreeBSD reading of its own (`procstat -v`, the rc.d service behind each PID) is #33, unbuilt until a host's output is recorded. No code change, so no version bump and no dependency change; netOrk does not repin for it.
christianmanivong added 1 commit 2026-11-26 18:03:10 +00:00
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
6ecab1cbe2
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.
christianmanivong merged commit 41f253dafd into main 2026-11-26 18:56:45 +00:00
christianmanivong deleted branch docs/no-services-restart 2026-11-26 18:56:45 +00:00
Sign in to join this conversation.