From 66c9be7d25f6baaf0f9f53e1b4b12889b968debb Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Tue, 6 Oct 2026 12:27:02 +0200 Subject: [PATCH] feat: declare that upgrading everything must be a full upgrade on Proxmox VE A plain apt-get upgrade holds back what needs new or removed packages and can leave a node half updated; Proxmox documents apt full-upgrade. netOrk reads FULL_UPGRADE when it upgrades the host (MVP 5). --- napalm_proxmox/driver.py | 4 ++++ tests/test_full_upgrade.py | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/test_full_upgrade.py diff --git a/napalm_proxmox/driver.py b/napalm_proxmox/driver.py index 051762d..42a8f50 100644 --- a/napalm_proxmox/driver.py +++ b/napalm_proxmox/driver.py @@ -96,6 +96,10 @@ class ProxmoxDriver( USES_SSH = False # A PVE node reboots through a full init sequence plus storage checks. REBOOT_SETTLE_SECONDS = 90 + #: "Upgrade everything" must be a full upgrade on Proxmox VE: a plain + #: ``apt-get upgrade`` holds back what needs new or removed packages and can + #: leave the node half updated. netOrk reads this when it upgrades the host. + FULL_UPGRADE = True PORT_SPECS = [ PortSpec("https", 8006, weight=8.0), ] diff --git a/tests/test_full_upgrade.py b/tests/test_full_upgrade.py new file mode 100644 index 0000000..c0aa70b --- /dev/null +++ b/tests/test_full_upgrade.py @@ -0,0 +1,11 @@ +"""Proxmox VE says that "upgrade everything" must be a full upgrade on it. + +A plain ``apt-get upgrade`` can leave a node half updated; Proxmox documents +``apt full-upgrade``. netOrk reads ``FULL_UPGRADE`` to choose. +""" + +from napalm_proxmox.driver import ProxmoxDriver + + +def test_a_full_upgrade_is_declared(): + assert ProxmoxDriver.FULL_UPGRADE is True -- 2.54.0