feat: Proxmox VE 9.3 API additions (NetOrk/netork#2728)

On a node running 9.3: HA maintenance over PUT /nodes/{node}/maintenance
(the target node's version decides, SSH below it), the guest uid in
get_vms, the cluster-id as ClusterDict.id, sync-time-on-resume on resume.
get_credential_expiry reads the expiry of the token or account the driver
logged in with; get_update_history lists the node's APT transactions.
Needs napalm-device-types 4.44.0.
This commit is contained in:
Christian Manivong committed 2026-11-26 17:35:50 +01:00
1 parent c2d9d7e75e
commit fddf8af680
17 files changed
+718 -17

No files matched your search

+11
View File
@@ -266,6 +266,11 @@ class TestCluster:
def test_every_member_listed_in_cluster_order(self):
assert [n["name"] for n in _cluster()["nodes"]] == ["pve1", "pve2", "pve3"]
def test_pve_9_3_names_the_cluster_by_its_id(self):
"""``cluster-id``: a random identifier, kept when the cluster is renamed."""
status = [dict(CLUSTER_STATUS[0], **{"cluster-id": "a1b2c3d4e5"}), *CLUSTER_STATUS[1:]]
assert _cluster(cluster_status=status)["id"] == "a1b2c3d4e5"
class TestNodes:
def test_online_node(self):
@@ -349,6 +354,12 @@ class TestStandalone:
assert node["memory_total"] == 128 * GIB
assert _by_name(cluster["storages"])["local"]["nodes"] == ["pve1"]
def test_pve_9_3_names_a_standalone_node_by_its_own_id(self):
status = [dict(self.STATUS[0], **{"cluster-id": "f6e5d4c3b2"})]
cluster = _cluster(cluster_status=status, resources=self.RESOURCES, ha=RuntimeError())
assert cluster["id"] == "f6e5d4c3b2"
assert cluster["name"] is None
class TestStorages:
def test_local_storage_grouped_over_its_nodes(self):