apply_updates: take over pkg, syspatch and freebsd-update from the application #13

Open
opened 2026-10-14 08:22:58 +00:00 by christianmanivong · 0 comments
Owner

napalm-bsd has no apply_updates. The application carries the BSD upgrade commands itself (NetOrk/netork netork/jobs/tasks/updates/apply.py ~79–104: pkg_add -u -I, running syspatch twice, freebsd-update … install, the FreeBSD-base repository check). That is device code in the wrong layer. UpdateMixin already declares apply_updates.

Change: implement apply_updates here with those commands and tests; the application then calls the driver.

Part of NetOrk/netork#1105. Plan: NAPALM/napalm-device-types docs/STRUCTURE.md (branch docs/structure-plan).

Prio P3.

napalm-bsd has no `apply_updates`. The application carries the BSD upgrade commands itself (NetOrk/netork `netork/jobs/tasks/updates/apply.py` ~79–104: `pkg_add -u -I`, running `syspatch` twice, `freebsd-update … install`, the `FreeBSD-base` repository check). That is device code in the wrong layer. `UpdateMixin` already declares `apply_updates`. Change: implement `apply_updates` here with those commands and tests; the application then calls the driver. Part of NetOrk/netork#1105. Plan: NAPALM/napalm-device-types `docs/STRUCTURE.md` (branch `docs/structure-plan`). Prio P3.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-bsd#13