feat(updates): the update history before PVE 9.3 from apt's log over SSH (NetOrk/netork#2728)

Below 9.3 get_update_history reads apt's history log over the node's SSH session
with napalm-device-types' AptHistoryMixin, which names a transaction as
GET /nodes/{node}/apt/history does, so the ids stay when the node moves to 9.3.
A node without an SSH login still raises NotImplementedError. Requires
napalm-device-types 4.47.0.
This commit is contained in:
Christian Manivong committed 2026-11-26 23:07:22 +01:00
1 parent dc0d6345a8
commit 707b24748b
5 files changed
+123 -17

No files matched your search

+11
View File
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- `get_update_history(since)` before PVE 9.3: apt's history log over the node's SSH
session, through napalm-device-types' `AptHistoryMixin` (NetOrk/netork#2728). A
transaction gets the id 9.3's `GET /nodes/{node}/apt/history` gives it (start time and
the index among those that started in the same second of the same log file), so a node
keeps its ids when it moves to 9.3; 9.3 and later still read the API. A node without an
SSH login raises `NotImplementedError`, a failed read `RuntimeError`.
### Changed
- Needs napalm-device-types 4.47.0 or later (`AptHistoryMixin`).
## [0.16.0] - 2026-11-26
### Added