requests ignores a timeout attribute on a Session, so open() setting one left every call without a timeout and an unresponsive gateway could hang a worker indefinitely. Each get/post/put now carries the driver's timeout. Closes #3
1.7 KiB
1.7 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.
Fixed
get_arp_table()reports an unknown age as-1.0(napalm-device-types'ARP_AGE_UNKNOWN) instead of0.0, which means "confirmed just now": the host list says a host is active, not when the gateway last saw it (NetOrk/netork#1327).- The HTTP fingerprint no longer counts
gs1920andgs2210as evidence for this driver: they are Zyxel switches, and discovery offered this gateway driver for them (#4). - Every HTTP request to the gateway carries the driver's
timeout. It was set on the session, where requests ignores it, so an unresponsive gateway could hang a call indefinitely (#3).
[0.3.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.typed, a README and a LICENSE file. Python 3.9 is no longer supported; napalm-device-types never ran on it. It needs napalm-device-types 4.21.1 or later. - A failed login keeps the underlying error as the cause of the
ConnectionException.