feat: name no warnings and report no package proxy (0.5.0)
CI / test (3.10) (push) Successful in 28s
CI / test (3.11) (push) Successful in 26s
CI / test (3.12) (push) Successful in 27s
CI / test (3.10) (pull_request) Successful in 27s
CI / test (3.11) (pull_request) Successful in 26s
CI / test (3.12) (pull_request) Successful in 27s

napalm-linux 0.9.0 names no warnings (netOrk #1111), so the override that
kept the inherited get_device_warnings from asking for updates goes. The
package proxy it now reports is switched off with the template that sets
it: QTS has no apt. Requires napalm-linux 0.9.0.
This commit is contained in:
Christian Manivong committed 2026-10-17 10:35:10 +02:00
1 parent 375530ac1c
commit 472518576e
3 files changed
+13 -14

No files matched your search

+4 -6
View File
@@ -78,16 +78,14 @@ class QnapQtsDriver(StorageDriver, HypervisorDriver, LinuxDriver):
get_available_updates = None # type: ignore[assignment]
refresh_available_updates = None # type: ignore[assignment]
apply_updates = None # type: ignore[assignment]
#: The fix templates LinuxDriver carries need a package manager or net-snmp
#: from packages; QTS has neither, and its SNMP agent is set in its own UI.
#: The fix templates LinuxDriver carries, and the package proxy it reports,
#: need a package manager or net-snmp from packages; QTS has neither, and
#: its SNMP agent is set in its own UI.
configure_snmp_agent = None # type: ignore[assignment]
configure_package_proxy = None # type: ignore[assignment]
get_package_proxy = None # type: ignore[assignment]
ensure_package = None # type: ignore[assignment]
def get_device_warnings(self) -> list:
"""Nothing to report: the inherited one asks for updates QTS cannot list."""
return []
SNMP_OBJECT_ID_PREFIX = QNAP_ENTERPRISE_OID
SNMP_FINGERPRINT = [
FingerprintRule("qnap", weight=9.0),