357 tests, napalm-standard check and ratchet, mypy, ruff — against the device-types branch. CI here stays red until device-types 4.26.0 is on the index.
## Summary
Scheduled jobs on Linux hosts (NetOrk/netork#1933) through napalm-device-types' `PosixScheduledJobsMixin`; the old `get_cron_jobs` goes.
## Changes
- `LinuxDriver` mixes in `PosixScheduledJobsMixin`: `get_scheduled_jobs`, `manage_scheduled_job`, `put_scheduled_job`, `delete_scheduled_job`
- `get_cron_jobs` and `_parse_cron_line` removed (unprivileged, missed /etc/crontab, run-parts, anacron and timers; no caller)
- Floor `napalm-device-types>=4.26.0`; OpenMediaVault and QNAP QTS inherit it and decide per verb in their own PRs
## Related Issue
Closes #67 · NetOrk/netork#1933 · needs NAPALM/napalm-device-types#87 released first
## Testing
357 tests, `napalm-standard check` and `ratchet`, mypy, ruff — against the device-types branch. CI here stays red until device-types 4.26.0 is on the index.
get_scheduled_jobs reads /etc/crontab, /etc/cron.d, the user crontabs,
run-parts, anacron and every systemd timer in one round trip as root;
manage_scheduled_job enables, disables or runs one now; put_ and
delete_scheduled_job write and remove an application's own job.
get_cron_jobs goes: it read without root, missed most of what a host
schedules, and nothing called it.
Requires napalm-device-types 4.26.0.
Closes#67
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
Scheduled jobs on Linux hosts (NetOrk/netork#1933) through napalm-device-types'
PosixScheduledJobsMixin; the oldget_cron_jobsgoes.Changes
LinuxDrivermixes inPosixScheduledJobsMixin:get_scheduled_jobs,manage_scheduled_job,put_scheduled_job,delete_scheduled_jobget_cron_jobsand_parse_cron_lineremoved (unprivileged, missed /etc/crontab, run-parts, anacron and timers; no caller)napalm-device-types>=4.26.0; OpenMediaVault and QNAP QTS inherit it and decide per verb in their own PRsRelated Issue
Closes #67 · NetOrk/netork#1933 · needs NAPALM/napalm-device-types#87 released first
Testing
357 tests,
napalm-standard checkandratchet, mypy, ruff — against the device-types branch. CI here stays red until device-types 4.26.0 is on the index.