feat: report where an update comes from and whether it is a security fix, refresh the index, read the host status

For netOrk MVP 5, on napalm-device-types 2.3.0:

- get_available_updates reads `apt list --upgradable` over the exec path
  (APT_UPGRADABLE_COMMAND), so each update carries its suite and security
  status; the APT API, which names only "Debian"/"Proxmox", is the fallback
  with security unknown. It raises when neither answers instead of returning
  [] -- it used to swallow every error.
- refresh_available_updates(): POST nodes/{n}/apt/update.
- HostStatusMixin over the exec path (reboot required, self-patching).
This commit is contained in:
Christian Manivong
2026-10-06 00:20:08 +02:00
parent 1881ee7330
commit 02a441ff09
4 changed files with 163 additions and 14 deletions
+2
View File
@@ -36,6 +36,7 @@ logger = logging.getLogger(__name__)
from napalm_device_types import (
FingerprintRule,
HostStatusMixin,
HypervisorDriver,
KernelFactsMixin,
PortSpec,
@@ -84,6 +85,7 @@ class ProxmoxDriver(
ProxmoxSystemMixin,
KernelFactsMixin,
SystemdServicesMixin,
HostStatusMixin,
HypervisorDriver,
):
"""NAPALM driver for Proxmox VE nodes."""