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

Closed
opened 2026-10-13 06:12:00 +00:00 by christianmanivong · 2 comments
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.
Author
Owner

Already fixed on main by 1921a3f ("fix: rename get_users to get_os_users for napalm-device-types 4.7"): base.py:539 defines get_os_users; tests/test_drivers.py checks that get_users is not overridden.

Already fixed on main by 1921a3f ("fix: rename get_users to get_os_users for napalm-device-types 4.7"): `base.py:539` defines `get_os_users`; `tests/test_drivers.py` checks that `get_users` is not overridden.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-bsd#9