Files
napalm-bsd/tests
Christian Manivong 018e7669ad feat(updates): apply_updates on FreeBSD and OpenBSD, each line as it comes (#13)
The upgrade commands move here from the application (NetOrk/netork#1112):
pkg upgrade or pkg_add -u for the chosen packages or every one, then the
base system's patches when base-system is chosen or nothing is. A classic
FreeBSD base installs what freebsd-update fetched (nothing fetched is no
failure; pkgbase needs no extra step); OpenBSD runs syspatch again when it
updated itself, and a second exit 2 is "nothing left".

The whole upgrade runs as root as one sh script on an exec channel, stderr
merged, the sudo password on stdin only and the script's stdin closed. The
log keyword napalm-device-types declares on apply_updates receives each line
as the host prints it. A host silent for 300 s, or a dropped connection, is
a failure with what was printed until then.

CI pre-installs napalm-device-types' branch commit with that declaration
until 4.54.0 is on PyPI.
2026-11-29 20:22:04 +01:00
..