driver / standard (pull_request) Successful in 15s
driver / lint (pull_request) Successful in 12s
driver / types (pull_request) Successful in 57s
driver / test (3.12) (pull_request) Successful in 56s
driver / test (3.13) (pull_request) Successful in 47s
driver / lowest (pull_request) Successful in 25s
driver / build (pull_request) Successful in 25s
driver / security (pull_request) Successful in 1m6s
CI / driver (pull_request) Successful in 2m29s
driver / publish (pull_request) Skipped
get_snmp_config sent "show snmp-server" through the CLI session, which does not exist on the REST transport, and returned None, so every switch managed over REST read as "SNMP not configured". Over REST the command now runs through the API's /cli endpoint and the output goes through the parser the SSH path uses. A failed REST read raises. Closes #10
3.4 KiB
3.4 KiB
Changelog
All notable changes to this driver. The format follows Keep a Changelog, versions follow Semantic Versioning.
[Unreleased]
Changed
- Python 3.12 is the floor (
requires-python = ">=3.12"): netOrk runs every driver on 3.12, so 3.10 and 3.11 are no longer tested (NAPALM/driver-standard#6). - The floor on napalm is 5.1: older releases import
pkg_resources, which a Python 3.12 venv no longer has. - The floor on urllib3 is 1.26.5: older releases bundle a
sixthat Python 3.12 cannot import. - The floor on netmiko is 4.3.0: the Telnet login reads the switch's greeting through a session log object, which older releases do not accept.
Fixed
configure_snmp_agentover the REST API opens its temporary SSH session on port 22. It usedoptional_args["port"], which names the REST API's port when REST is the transport, so the SNMP setup failed on switches managed over REST.- A switch whose Telnet sessions are all taken is reported as such ("the switch has no free session"), as a connection error. It was reported as an authentication failure, which pointed at the password.
- A REST API that answers the login with an HTML page is reported as "answered with a web page instead of JSON", not as a failed login.
- An SSH attempt that failed for another reason than a timeout, such as no common key exchange algorithm, names that reason instead of "timed out".
get_snmp_configreads the switch's communities over the REST API too. It returnedNonethere, so a switch managed over REST always read as having no SNMP. A read that fails now raises instead of reading as "no SNMP" (REST transport).
[0.6.0] - 2026-10-23
The first release on PyPI.
Changed
- The driver follows the NAPALM driver standard
(https://git.netork.io/NAPALM/driver-standard): CI on Gitea runs ruff, mypy, the
tests on Python 3.10–3.13 and at the lowest declared versions, bandit, pip-audit and
a build check, and a release tag publishes to PyPI. The package now ships
py.typedand a LICENSE file. Python 3.8 and 3.9 are no longer supported; napalm-device-types never ran on them. It now requires napalm-device-types 4.21.1. - Exceptions the driver deliberately ignores (logging out of the REST API, the extra port lookup, per-port details, closing a session) are now logged at debug level.
[0.5.0] - 2026-10-18
Changed
- The SSH host key is verified: with a known key in
optional_args["ssh_host_keys"]any other key is refused before login, and every key seen is reported tooptional_args["ssh_host_key_observer"]. Without either argument the driver connects as before. Requires napalm-device-types 4.19.0.
[0.4.0] - 2026-10-17
Added
configure_snmp_agent(): community (read-only), contact and location from the caller, saved and verified inshow snmp-server.
Removed
- Breaking:
fix_snmpandrun_device_action;fix_snmpset the communitypublic.
[0.3.0] - 2026-10-16
Changed
- The driver no longer collects over SNMP:
SNMP_HEALTH_PROFILEdeclares where the switch publishes its health values. The memory value is read as free memory, as the switch reports it, and interface counters come from the 64-bit ifXTable.
[0.2.0] - 2026-05-29
Added
- First version: ProCurve and Aruba switches over the REST API, SSH, SSH with legacy key exchange or Telnet, chosen automatically.