Merge NAPALM/napalm-device-types main (4.47.0) into feature/hardening-reading
driver / standard (pull_request) Successful in 30s
driver / lint (pull_request) Successful in 59s
driver / types (pull_request) Successful in 2m12s
driver / test (3.12) (pull_request) Successful in 2m16s
driver / lowest (pull_request) Successful in 39s
driver / test (3.13) (pull_request) Successful in 1m26s
driver / build (pull_request) Successful in 39s
driver / security (pull_request) Successful in 1m18s
CI / driver (pull_request) Successful in 5m3s
driver / publish (pull_request) Skipped

4.47.0 (#135) is released; this branch stays 4.48.0, its changelog section
above 4.47.0's.
This commit is contained in:
christianmanivong committed 2026-11-27 05:52:44 +01:00
commit c93ceeb320
6 files changed
+846 -1

No files matched your search

+7
View File
@@ -196,6 +196,13 @@ another release than the host's is the caller's to judge (`suite_release` gives
source file to *codename*, after fetching each new suite's `InRelease` with apt's downloader:
where the vendor has none, the file stays as it is.
`AptHistoryMixin` (`napalm_device_types.apt_history`) implements
`UpdateMixin.get_update_history` from apt's own log over the driver's `run_command`: every
transaction in `/var/log/apt/history.log` and its rotations, newest first, with the same
ids Proxmox VE 9.3's `GET /nodes/{node}/apt/history` gives (start time and the index among
those that started in the same second of the same file). A driver whose host may run
another package manager gates it, as napalm-linux does.
`HostStatusMixin` (`get_host_status`) is mixed in the same way: whether a Linux host needs
a reboot to finish an update (`/var/run/reboot-required`, `needs-restarting -r`, or a newer
kernel of the running flavour installed), whether it patches itself (unattended-upgrades,