Files
napalm-tplink-jetstream/CHANGELOG.md
T
Christian Manivong dc41b8497e
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 16s
driver / types (pull_request) Successful in 59s
driver / test (3.13) (pull_request) Successful in 52s
driver / test (3.12) (pull_request) Successful in 1m1s
driver / lowest (pull_request) Successful in 26s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 58s
CI / driver (pull_request) Successful in 2m6s
driver / publish (pull_request) Skipped
feat(time-sync): the switch's NTP servers and zone through TimeSyncMixin
netOrk aligns every device's NTP servers and time zone with its site's
(NetOrk/netork#2360, #2366). A JetStream keeps both in one line,
system-time ntp <zone> <primary> <backup> <hours>, with the zone as a
UTC offset from a fixed list and summer time in a system-time dst line
of its own.

get_time_sync() reads the servers from that line and the zone as None:
the switch keeps no name to map back. configure_time_sync() writes an
IANA zone as its offset and a dst recurring rule from the zone's POSIX
rule (posix_tz/parse_posix_tz), and refuses before sending anything
what the switch cannot take: more than two servers, anything but IPv4
addresses, an offset it does not offer, a change outside HH:MM of a day.
Servers and zone share the ntp line, so a call with both writes it once.
A change is saved to the startup configuration; values the switch
already has are not sent again, so the alignment on every poll does not
churn.

The code lives in time_sync.py; get_ntp_servers() now reads through it,
so the driver file shrinks (1999 -> 1987 lines).
2026-11-11 15:17:51 +01:00

117 lines
5.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog
All notable changes to this driver. The format follows
[Keep a Changelog](https://keepachangelog.com/), versions follow
[Semantic Versioning](https://semver.org/).
## [Unreleased]
### Added
- `get_time_sync()` and `configure_time_sync()` through napalm-device-types'
`TimeSyncMixin` (4.35.0, NetOrk/netork#2366). The switch keeps servers and zone in one
`system-time ntp <zone> <primary> <backup> <hours>` line: the read lists its servers
(one listed as primary and backup counts once, an empty `0.0.0.0` backup not at all),
and the zone as `None`, since the switch keeps a UTC offset, not a name. A write takes
at most 2 IPv4 addresses (one server goes in as primary and backup) and an IANA zone,
written as its UTC offset from the switch's list and a `system-time dst recurring` line
from the zone's POSIX rule (`no system-time dst` for a zone without summer time); a
zone the switch cannot show (UTC+12:45, a change at 24:00) is refused before anything
is sent. Writing the servers switches the clock from manual time to NTP. A change is
saved with `copy running-config startup-config`; what the switch already has is not
sent again. `get_ntp_servers()` lists the same servers.
### Fixed
- `get_snmp_information()` reads each community from the table's `Name` column and its
access from the `Type` column (#14). It took the `Index` column as the community, so
the switch's `public` was reported as `1`, and read the access from the name, so every
community came out read-only.
- `get_snmp_config()` reads the community from the table's `Name` column. It took the
first column, which is `Index` on the switch, and reported the community as `1`.
- The SSH key exchange no longer uses `diffie-hellman-group16-sha512`. On an SG2210P
with firmware 5.30 its 4096-bit exchange took 9 to 16 seconds, against netmiko's
10-second `conn_timeout`, so every other connection failed and the switch flapped
between online and offline. `diffie-hellman-group14-sha256` takes 1.5 seconds. A
`disabled_algorithms` in `optional_args` still takes precedence.
- `ping()` lists only replies in `results`. A "Request timed out" line was listed too,
so a ping sweep reported hosts that never answered as alive.
- `get_snmp_config()` no longer reports the community `"public"` when the switch lists
none: without a listed community it reports the agent as not running.
### Changed
- Needs napalm-device-types 4.35.0.
- 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 of `0.0`, which means "confirmed just now": `show arp`
has no age column (NetOrk/netork#1327).
## [0.5.0] - 2026-10-23
The first release on PyPI through the shared workflow; 0.1.0 and 0.1.1 there are an old upload.
### 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`
and a LICENSE file. It requires Python 3.10 and napalm-device-types 4.21.1.
- A failure to read the current VLANs before `set_interface()` moves a port to another
access VLAN is now logged at debug level.
## [0.4.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 to
`optional_args["ssh_host_key_observer"]`. Without either argument the driver
connects as before. Requires napalm-device-types 4.19.0.
## [0.3.0] - 2026-10-17
### Added
- `configure_snmp_agent()`: the caller's community (read-only), the source interface
set to the VLAN whose address is exactly the listen or management address, saved
and checked in `show snmp community`.
### Removed
- **Breaking:** `fix_snmp` and `run_device_action`; `fix_snmp` set the community
`public` and could pick the wrong VLAN.
## [0.2.0] - 2026-10-16
### Added
- SNMP configuration (`get_snmp_config()`), PoE status and configuration
(`get_poe_status()`, `set_poe()`), interface enable and description, LAG membership
in `get_interfaces()`, and fingerprints for discovery.
### Changed
- The driver no longer collects over SNMP: `SNMP_HEALTH_PROFILE` declares where the
switch publishes uptime, CPU and memory, and interface counters come from the
64-bit ifXTable.
- `get_config()` drops the timestamped event-log lines the switch embeds in the
running configuration.
- `set_interface()` uses the switch's own commands for the access VLAN and the native
VLAN of a trunk.
- Requires Python 3.10 and paramiko 5.0.0 or newer (CVE-2026-44405).
## [0.1.2] - 2026-05-29
### Added
- VLAN and interface configuration; TL-SG3210 support.
## [0.1.1] - 2026-05-12
### Fixed
- VLAN membership is read correctly when the switch wraps it over several lines.
## [0.1.0] - 2026-05-09
### Added
- `tplink_jetstream` driver for TP-Link Jetstream switches over SSH: facts,
interfaces and their addresses, configuration, ARP and MAC tables, LLDP neighbours
and VLANs.