Rename get_users to get_os_users for napalm-device-types >= 4.7 #9

Open
opened 2026-10-13 06:12:00 +00:00 by christianmanivong · 1 comment
Owner

napalm-device-types 4.7.0 renamed OSDriver.get_users to get_os_users (BREAKING CHANGE): NAPALM's own get_users has a different shape and a runtime stub, so hasattr could not tell the two apart.

BsdDriver.get_users (napalm_bsd/base.py) returns the OS user list and must become get_os_users when this driver moves to napalm-device-types >= 4.7.0. Update the tests with it.

Not live yet: netOrk still pins napalm-device-types at e58b65a (4.5.1).

Priority: P3 (needed for the pin bump).

napalm-device-types 4.7.0 renamed `OSDriver.get_users` to `get_os_users` (BREAKING CHANGE): NAPALM's own `get_users` has a different shape and a runtime stub, so `hasattr` could not tell the two apart. `BsdDriver.get_users` (`napalm_bsd/base.py`) returns the OS user list and must become `get_os_users` when this driver moves to napalm-device-types >= 4.7.0. Update the tests with it. Not live yet: netOrk still pins napalm-device-types at e58b65a (4.5.1). Priority: P3 (needed for the pin bump).
Author
Owner

Tracked in NetOrk/netork#1096.

Tracked in NetOrk/netork#1096.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-bsd#9