feat(updates): raise PackageIndexMissing when the index is not in RAM
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 16s
driver / types (pull_request) Successful in 46s
driver / test (3.13) (pull_request) Successful in 44s
driver / test (3.12) (pull_request) Successful in 51s
driver / lowest (pull_request) Successful in 25s
driver / build (pull_request) Successful in 25s
driver / security (pull_request) Successful in 55s
CI / driver (pull_request) Successful in 1m55s
driver / publish (pull_request) Skipped

After a reboot apk and opkg have no package index. get_available_updates()
raised a bare RuntimeError for that, which netOrk could not tell from a
read that failed. It now raises napalm-device-types' PackageIndexMissing,
so netOrk loads the index instead of reporting a communication error.

Needs napalm-device-types 4.39.0.

Refs NetOrk/netork#2527
This commit is contained in:
Christian Manivong committed 2026-11-14 23:46:09 +01:00
1 parent de11d16749
commit ec88cfd734
4 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ classifiers = [
]
dependencies = [
"napalm>=5.1", # older releases import pkg_resources, which a 3.12 venv lacks
"napalm_device_types>=4.36.0", # TimeSyncMixin with dhcp_ntp_servers, posix_tz
"napalm_device_types>=4.39.0", # PackageIndexMissing
"netmiko>=4.0.0",
"paramiko>=5.0.0", # CVE-2026-44405
"netaddr>=0.7.19", # IPAddress; below it the package has none (CI lowest job)