netOrk reads an empty update list as "no updates" and would close every patch clock on the host. Until now these all came back as an empty list:
a refused sudo;
a failing pkg upgrade -n, syspatch -c, pkg_add -u -n or freebsd-update updatesready;
a pkg database that pkg cannot read.
Each of them now raises. BsdDriver._read does this for any exit code outside the expected ones. Only pkg's "is not installed" still means "no packages".
BsdDriver also takes on napalm-device-types' HostStatusMixin. On FreeBSD it reports a host as needing a reboot when the installed kernel differs from the running one (device-types 4.1, NAPALM/napalm-device-types#23). On OpenBSD the answer stays unknown.
The README and CHANGELOG are updated. The Unreleased section is now all under "Added", since nothing has been released yet.
netOrk reads an empty update list as "no updates" and would close every patch clock on the host. Until now these all came back as an empty list:
- a refused sudo;
- a failing `pkg upgrade -n`, `syspatch -c`, `pkg_add -u -n` or `freebsd-update updatesready`;
- a pkg database that pkg cannot read.
Each of them now raises. `BsdDriver._read` does this for any exit code outside the expected ones. Only pkg's "is not installed" still means "no packages".
`BsdDriver` also takes on napalm-device-types' `HostStatusMixin`. On FreeBSD it reports a host as needing a reboot when the installed kernel differs from the running one (device-types 4.1, NAPALM/napalm-device-types#23). On OpenBSD the answer stays unknown.
The README and CHANGELOG are updated. The Unreleased section is now all under "Added", since nothing has been released yet.
Closes #4
netOrk reads an empty update list as "no updates" and closes every patch
clock on the host. A refused sudo, a failing pkg, syspatch or freebsd-update,
or a pkg database pkg cannot read used to come back as that empty list. Each
of these now raises. Only pkg's "is not installed" still means no packages.
BsdDriver takes on napalm-device-types' HostStatusMixin. On FreeBSD it
reports a host whose installed kernel differs from the running one as
needing a reboot (device-types 4.1). OpenBSD stays unknown.
Closes#4
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
netOrk reads an empty update list as "no updates" and would close every patch clock on the host. Until now these all came back as an empty list:
pkg upgrade -n,syspatch -c,pkg_add -u -norfreebsd-update updatesready;Each of them now raises.
BsdDriver._readdoes this for any exit code outside the expected ones. Only pkg's "is not installed" still means "no packages".BsdDriveralso takes on napalm-device-types'HostStatusMixin. On FreeBSD it reports a host as needing a reboot when the installed kernel differs from the running one (device-types 4.1, NAPALM/napalm-device-types#23). On OpenBSD the answer stays unknown.The README and CHANGELOG are updated. The Unreleased section is now all under "Added", since nothing has been released yet.
Closes #4