FreeBSD and OpenBSD hosts report the role "linux" #10

Open
opened 2026-10-14 08:22:58 +00:00 by christianmanivong · 0 comments
Owner

BsdDriver sets no ROLE, so role_keys_of() resolves to the inherited OSDriver.ROLE = "linux" and primary_role_of(FreeBSDDriver) is "linux". Callers that show or branch on the device class treat a FreeBSD host as Linux.

Fix: set ROLE on BsdDriver (or per OS) once the callers know the new key. napalm-device-types 5.0 drops the "linux" default of OSDriver.

Part of NetOrk/netork#1105. Plan: NAPALM/napalm-device-types docs/STRUCTURE.md (branch docs/structure-plan).

Prio P3: wrong data, no crash.

`BsdDriver` sets no `ROLE`, so `role_keys_of()` resolves to the inherited `OSDriver.ROLE = "linux"` and `primary_role_of(FreeBSDDriver)` is `"linux"`. Callers that show or branch on the device class treat a FreeBSD host as Linux. Fix: set `ROLE` on `BsdDriver` (or per OS) once the callers know the new key. napalm-device-types 5.0 drops the `"linux"` default of `OSDriver`. Part of NetOrk/netork#1105. Plan: NAPALM/napalm-device-types `docs/STRUCTURE.md` (branch `docs/structure-plan`). Prio P3: wrong data, no crash.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-bsd#10