Merge branch 'main' into feature/web-login-auth-662
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Failing after 18s
driver / lowest (pull_request) Successful in 32s
driver / types (pull_request) Successful in 50s
driver / test (3.12) (pull_request) Successful in 1m7s
driver / test (3.13) (pull_request) Successful in 58s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Failing after 1m50s
driver / publish (pull_request) Skipped

This commit is contained in:
Christian Manivong committed 2026-11-29 07:14:09 +01:00
commit 4455f71bd7
7 files changed
+93 -5

No files matched your search

+2
View File
@@ -17,6 +17,7 @@ from typing import Any
from napalm_device_types import (
AptProxyMixin,
BackupServerDriver,
CpuMicrocodeMixin,
EnsurePackageMixin,
FingerprintRule,
HardeningMixin,
@@ -79,6 +80,7 @@ class ProxmoxBackupDriver(
HostStatusMixin,
LicenseMixin,
ProxmoxZabbixAgentMixin,
CpuMicrocodeMixin,
EnsurePackageMixin,
AptProxyMixin,
OpenSshServerMixin,
+2
View File
@@ -27,6 +27,7 @@ from typing import Any
from napalm.base.exceptions import ConnectionException
from napalm_device_types import (
AptProxyMixin,
CpuMicrocodeMixin,
EnsurePackageMixin,
FingerprintRule,
HardeningMixin,
@@ -123,6 +124,7 @@ class ProxmoxDriver(
LicenseMixin,
SnmpAgentMixin,
ProxmoxZabbixAgentMixin,
CpuMicrocodeMixin,
EnsurePackageMixin,
AptProxyMixin,
OpenSshServerMixin,
+8
View File
@@ -261,6 +261,14 @@ class ProxmoxHostMixin:
def _write_apt_file(self, path: str, content: str) -> FixStepOutcomeDict:
return self._write_root_file(path, content)
def _reload_package_index(self) -> FixStepOutcomeDict:
"""``CpuMicrocodeMixin``'s index load (NetOrk/netork#2838): ``apt-get update`` on the
exec path, done when it returns. ``refresh_available_updates`` only starts the API's
task, and the install that follows would race it."""
return self._step(
"DEBIAN_FRONTEND=noninteractive apt-get update", "package index loaded again"
)
def _allow_sources(
self, allowed: list[str], port: int, proto: str, purpose: str
) -> FixStepOutcomeDict: