fix: rename get_users to get_os_users for napalm-device-types 4.7

napalm-device-types 4.7 renamed OSDriver.get_users to get_os_users:
NAPALM's own get_users has another shape and a stub on every driver, so
hasattr could not tell the two apart. BsdDriver now implements
get_os_users with the same return shape and leaves NAPALM's get_users
alone.

Require napalm-device-types>=4.7.1 and bump the version to 0.2.0.
This commit is contained in:
christianmanivong committed 2026-10-13 06:20:00 +00:00
1 parent 2a92ec77e3
commit 1921a3f044
5 files changed
+24 -7

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "napalm-bsd"
version = "0.1.0"
version = "0.2.0"
description = "NAPALM drivers for FreeBSD and OpenBSD hosts via SSH"
readme = "README.md"
requires-python = ">=3.10"
@@ -26,7 +26,7 @@ classifiers = [
]
dependencies = [
"napalm>=4.0",
"napalm-device-types>=2.6.0", # channel.run_on_transport
"napalm-device-types>=4.7.1", # channel.run_on_transport; OSDriver.get_os_users
"paramiko>=5.0.0", # CVE-2026-44405
]