Mixes in napalm-device-types' new ServicePackagesMixin, so get_service_packages() says which installed packages each systemd service is made of (unit file and ExecStart binary). NetOrk/netork#1236 phase 3 uses it to let a decision about one system service reach the host's findings on its packages.
Priority: P3
Changes
LinuxDriver gains ServicePackagesMixin; _run_service_packages_command runs the shared read-only command on an exec channel under sh, without sudo (about 1 kB, past what the PTY takes reliably; written for sh whatever the login shell).
tests/test_linux.py::test_get_service_packages_runs_the_shared_command_under_sh_on_an_exec_channel; whole suite: 210 passed (against the napalm-device-types branch).
Merge after the napalm-device-types PR, which this needs.
## Summary
Mixes in napalm-device-types' new `ServicePackagesMixin`, so `get_service_packages()` says which installed packages each systemd service is made of (unit file and `ExecStart` binary). NetOrk/netork#1236 phase 3 uses it to let a decision about one system service reach the host's findings on its packages.
Priority: P3
## Changes
- `LinuxDriver` gains `ServicePackagesMixin`; `_run_service_packages_command` runs the shared read-only command on an exec channel under `sh`, without sudo (about 1 kB, past what the PTY takes reliably; written for `sh` whatever the login shell).
- Requires napalm-device-types >= 4.20.0 (NAPALM/napalm-device-types, branch `feat/service-packages-1236`); version 0.12.0; CHANGELOG entry.
## Related Issue
NetOrk/netork#1236 (phase 3).
## Testing
`tests/test_linux.py::test_get_service_packages_runs_the_shared_command_under_sh_on_an_exec_channel`; whole suite: 210 passed (against the napalm-device-types branch).
Merge after the napalm-device-types PR, which this needs.
Mixes in napalm-device-types' ServicePackagesMixin. The transport runs the
shared read-only command on an exec channel under sh, without sudo: it is
about 1 kB, past what the PTY takes reliably, and written for sh whatever
the login shell. Requires napalm-device-types 4.20.0; version 0.12.0.
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.
Summary
Mixes in napalm-device-types' new
ServicePackagesMixin, soget_service_packages()says which installed packages each systemd service is made of (unit file andExecStartbinary). NetOrk/netork#1236 phase 3 uses it to let a decision about one system service reach the host's findings on its packages.Priority: P3
Changes
LinuxDrivergainsServicePackagesMixin;_run_service_packages_commandruns the shared read-only command on an exec channel undersh, without sudo (about 1 kB, past what the PTY takes reliably; written forshwhatever the login shell).feat/service-packages-1236); version 0.12.0; CHANGELOG entry.Related Issue
NetOrk/netork#1236 (phase 3).
Testing
tests/test_linux.py::test_get_service_packages_runs_the_shared_command_under_sh_on_an_exec_channel; whole suite: 210 passed (against the napalm-device-types branch).Merge after the napalm-device-types PR, which this needs.