fix: FreeBSD and OpenBSD hosts report the role bsd (ROLE = "bsd" on BsdDriver) instead of inheriting linux (#10). netOrk accepts bsd wherever it accepted linux (poll budget, SNMP standard reading, Lynis, OS tabs) in a matching netOrk change.
fix(openbsd): SNMP_HEALTH_PROFILE = {"cpu": {"unknown": True}} — netOrk reports no CPU figure for OpenBSD instead of 100 % (#7). FreeBSD keeps the standard reading.
Depends on napalm-device-types feat/health-profile-unknown (SnmpValueSpec.unknown). Raise the device-types floor to the release containing it before merging (mypy: Extra key "unknown" against the old contract; napalm_bsd.openbsd is still under ignore_errors, so CI would not catch it).
Tested: fixtures only (test_the_role_is_bsd_not_linux, test_openbsd_cpu_is_unknown, both failed first). pytest 151 passed, ruff, mypy clean.
Two decisions on #10 and #7, one commit each.
- `fix`: FreeBSD and OpenBSD hosts report the role `bsd` (`ROLE = "bsd"` on `BsdDriver`) instead of inheriting `linux` (#10). netOrk accepts `bsd` wherever it accepted `linux` (poll budget, SNMP standard reading, Lynis, OS tabs) in a matching netOrk change.
- `fix(openbsd)`: `SNMP_HEALTH_PROFILE = {"cpu": {"unknown": True}}` — netOrk reports no CPU figure for OpenBSD instead of 100 % (#7). FreeBSD keeps the standard reading.
**Depends on** napalm-device-types `feat/health-profile-unknown` (`SnmpValueSpec.unknown`). Raise the device-types floor to the release containing it before merging (mypy: `Extra key "unknown"` against the old contract; `napalm_bsd.openbsd` is still under `ignore_errors`, so CI would not catch it).
Tested: fixtures only (`test_the_role_is_bsd_not_linux`, `test_openbsd_cpu_is_unknown`, both failed first). pytest 151 passed, ruff, mypy clean.
Closes #10
Closes #7
BsdDriver set no ROLE, so both drivers inherited OSDriver's "linux"
and an application that shows or branches on the role treated a BSD
host as a Linux one. One key for both systems.
Closes#10
net-snmp on OpenBSD answers ssCpuIdle with 0 on an idle host (and
hrProcessorLoad with 100), so a reading of the standard OID shows every
OpenBSD host at 100 % CPU. The profile now marks the CPU unknown, and
the application reports no figure instead of a wrong one. Memory, swap
and load stay on the standard reading.
Closes#7
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Two decisions on #10 and #7, one commit each.
fix: FreeBSD and OpenBSD hosts report the rolebsd(ROLE = "bsd"onBsdDriver) instead of inheritinglinux(#10). netOrk acceptsbsdwherever it acceptedlinux(poll budget, SNMP standard reading, Lynis, OS tabs) in a matching netOrk change.fix(openbsd):SNMP_HEALTH_PROFILE = {"cpu": {"unknown": True}}— netOrk reports no CPU figure for OpenBSD instead of 100 % (#7). FreeBSD keeps the standard reading.Depends on napalm-device-types
feat/health-profile-unknown(SnmpValueSpec.unknown). Raise the device-types floor to the release containing it before merging (mypy:Extra key "unknown"against the old contract;napalm_bsd.openbsdis still underignore_errors, so CI would not catch it).Tested: fixtures only (
test_the_role_is_bsd_not_linux,test_openbsd_cpu_is_unknown, both failed first). pytest 151 passed, ruff, mypy clean.Closes #10
Closes #7