feat(firmware): install the offered firmware through FirmwareUpgradeMixin (NetOrk/netork#2615) #126

Merged
christianmanivong merged 3 commits from feature/openwrt-sysupgrade-2615 into main 2026-11-17 11:38:29 +00:00
Owner

For NetOrk/netork#2615: netOrk upgrades an OpenWrt device to the newest release of its own line as a whole (sysupgrade through owut) instead of piling package upgrades into the overlay.

  • FirmwareUpgradeMixin.start_firmware_upgrade(version): starts installing the firmware a driver offers; the device runs it by itself and restarts at its end. UpdateMixin.get_update_progress follows it until then (its docstring now names this case).
  • FirmwareOfferDict.installable (optional): whether the driver can install latest_version itself now, False while the device lacks what that takes, left out where it never installs firmware.
  • FirmwareOfferDict.latest_major_version (optional): the newest of a later release line, shown and never crossed to by the driver.
  • Release 4.41.0 (version and CHANGELOG), so napalm-openwrt can require it.

Declared only, as every contract here; tests: tests/test_fact_getters.py. Full suite, ruff and mypy green locally.

For NetOrk/netork#2615: netOrk upgrades an OpenWrt device to the newest release of its own line as a whole (sysupgrade through owut) instead of piling package upgrades into the overlay. - `FirmwareUpgradeMixin.start_firmware_upgrade(version)`: starts installing the firmware a driver offers; the device runs it by itself and restarts at its end. `UpdateMixin.get_update_progress` follows it until then (its docstring now names this case). - `FirmwareOfferDict.installable` (optional): whether the driver can install `latest_version` itself now, False while the device lacks what that takes, left out where it never installs firmware. - `FirmwareOfferDict.latest_major_version` (optional): the newest of a later release line, shown and never crossed to by the driver. - Release 4.41.0 (version and CHANGELOG), so napalm-openwrt can require it. Declared only, as every contract here; tests: `tests/test_fact_getters.py`. Full suite, ruff and mypy green locally.
christianmanivong added 2 commits 2026-11-17 11:32:53 +00:00
start_firmware_upgrade(version) starts an upgrade the device runs by itself and
restarts at the end of; get_update_progress follows it. The offer says whether
the driver can install it now (installable) and names a later release line it
never crosses to (latest_major_version).
chore(release): 4.41.0
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Failing after 15s
driver / types (pull_request) Successful in 53s
driver / test (3.13) (pull_request) Successful in 1m3s
driver / test (3.12) (pull_request) Successful in 1m14s
driver / lowest (pull_request) Successful in 40s
driver / build (pull_request) Successful in 25s
driver / security (pull_request) Successful in 52s
CI / driver (pull_request) Failing after 2m10s
driver / publish (pull_request) Skipped
71588613fb
christianmanivong added 1 commit 2026-11-17 11:35:34 +00:00
refactor(firmware): FirmwareOfferDict lives with its contract
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Successful in 16s
driver / types (pull_request) Successful in 50s
driver / test (3.13) (pull_request) Successful in 59s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / lowest (pull_request) Successful in 35s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 53s
CI / driver (pull_request) Successful in 2m9s
driver / publish (pull_request) Skipped
1a7885d22e
models.py is over the file limit and may not grow; the offer's two new
fields moved it past its recorded length. It is still importable from
napalm_device_types.models.
christianmanivong merged commit 2dea517e89 into main 2026-11-17 11:38:29 +00:00
christianmanivong deleted branch feature/openwrt-sysupgrade-2615 2026-11-17 11:38:29 +00:00
Sign in to join this conversation.