feat(updates): raise PackageIndexMissing when the index is not in RAM #47

Merged
christianmanivong merged 1 commits from feat/package-index-missing into main 2026-11-14 23:37:42 +00:00
Owner

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 failed read, so it showed a device communication error.

  • Raises napalm-device-types' PackageIndexMissing for apk and opkg alike.
  • Needs napalm-device-types 4.39.0.

For NetOrk/netork#2527.

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 failed read, so it showed a device communication error. - Raises napalm-device-types' `PackageIndexMissing` for apk and opkg alike. - Needs napalm-device-types 4.39.0. For NetOrk/netork#2527.
christianmanivong added 1 commit 2026-11-14 23:02:33 +00:00
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
ec88cfd734
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
christianmanivong merged commit c4434cf54b into main 2026-11-14 23:37:42 +00:00
christianmanivong deleted branch feat/package-index-missing 2026-11-14 23:37:43 +00:00
Sign in to join this conversation.