SnmpValueSpec gets a key unknown: bool. A health-profile entry such as "cpu": {"unknown": True} says the application should report no value for it — not the standard reading, not a default. It stands alone, without oids or table.
Why: NAPALM/napalm-bsd#7 — OpenBSD's net-snmp reports 0 % idle, so the standard reading shows the host at 100 % CPU. Decision: an explicit "unknown" in the contract rather than relying on an empty oids list.
Docs: docstrings, README SNMP section, CHANGELOG [Unreleased] → Added (MINOR). Tested: test_a_value_the_agent_gets_wrong_is_declared_unknown and the updated shape test (failed first); pytest 1039 passed, ruff, mypy clean.
Merge order: this first and release; then napalm-bsd (floor bump) and netOrk (pins).
`SnmpValueSpec` gets a key `unknown: bool`. A health-profile entry such as `"cpu": {"unknown": True}` says the application should report **no** value for it — not the standard reading, not a default. It stands alone, without `oids` or `table`.
Why: NAPALM/napalm-bsd#7 — OpenBSD's net-snmp reports 0 % idle, so the standard reading shows the host at 100 % CPU. Decision: an explicit "unknown" in the contract rather than relying on an empty `oids` list.
Docs: docstrings, README SNMP section, CHANGELOG [Unreleased] → Added (MINOR). Tested: `test_a_value_the_agent_gets_wrong_is_declared_unknown` and the updated shape test (failed first); pytest 1039 passed, ruff, mypy clean.
Merge order: this first and release; then napalm-bsd (floor bump) and netOrk (pins).
SnmpValueSpec gains `unknown`. A driver whose device's agent answers a
value wrongly says so in its SNMP_HEALTH_PROFILE, and the application
reports no value for it instead of the standard reading or a default.
OpenBSD's net-snmp reports the CPU as never idle, so a reading of
ssCpuIdle shows every OpenBSD host at 100 % (NAPALM/napalm-bsd#7).
models.py is over the file size limit and may not grow; the unknown
key pushed it past its recorded length. SnmpHealthProfile,
SnmpValueSpec, SnmpMemorySpec and SnmpInterfacesSpec move to
napalm_device_types/snmp_health_profile.py. The package exports them
as before and models re-exports them, so existing imports keep working.
The baseline records the smaller models.py.
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.
SnmpValueSpecgets a keyunknown: bool. A health-profile entry such as"cpu": {"unknown": True}says the application should report no value for it — not the standard reading, not a default. It stands alone, withoutoidsortable.Why: NAPALM/napalm-bsd#7 — OpenBSD's net-snmp reports 0 % idle, so the standard reading shows the host at 100 % CPU. Decision: an explicit "unknown" in the contract rather than relying on an empty
oidslist.Docs: docstrings, README SNMP section, CHANGELOG [Unreleased] → Added (MINOR). Tested:
test_a_value_the_agent_gets_wrong_is_declared_unknownand the updated shape test (failed first); pytest 1039 passed, ruff, mypy clean.Merge order: this first and release; then napalm-bsd (floor bump) and netOrk (pins).