LinuxDriver gets get_time_sync() and configure_time_sync() from napalm-device-types 4.35.0's PosixTimeSyncMixin: chrony, systemd-timesyncd, timedatectl; the driver only carries the commands across run_command.
PosixScheduledJobsMixin and PosixTimeSyncMixin come in together through LinuxPosixMixin (napalm_linux/_posix.py), so linux.py does not grow past its ratchet baseline. OpenMediaVault and QNAP inherit both.
Needs napalm-device-types 4.35.0 (floor bumped). Linux has no NAPALM get_ntp_servers(); nothing to keep consistent there.
pytest (406 passed), ruff, mypy, napalm-standard check and ratchet locally, against the napalm-device-types branch feature/time-sync-2361.
CI fails until napalm-device-types 4.35.0 is on PyPI; to be rerun after the release.
napalm-openmediavault (130 passed) and napalm-qnap-qts (116 passed) against this branch.
## Summary
- `LinuxDriver` gets `get_time_sync()` and `configure_time_sync()` from napalm-device-types 4.35.0's `PosixTimeSyncMixin`: chrony, systemd-timesyncd, `timedatectl`; the driver only carries the commands across `run_command`.
- `PosixScheduledJobsMixin` and `PosixTimeSyncMixin` come in together through `LinuxPosixMixin` (`napalm_linux/_posix.py`), so `linux.py` does not grow past its ratchet baseline. OpenMediaVault and QNAP inherit both.
- Needs napalm-device-types 4.35.0 (floor bumped). Linux has no NAPALM `get_ntp_servers()`; nothing to keep consistent there.
## Related Issue
NetOrk/netork#2361 (part of NetOrk/netork#2360, time sync)
## Testing
- `pytest` (406 passed), `ruff`, `mypy`, `napalm-standard check` and `ratchet` locally, against the napalm-device-types branch `feature/time-sync-2361`.
- CI fails until napalm-device-types 4.35.0 is on PyPI; to be rerun after the release.
- napalm-openmediavault (130 passed) and napalm-qnap-qts (116 passed) against this branch.
netOrk aligns every device's NTP servers and time zone with the site's
(NetOrk/netork#2360). A Linux host gets get_time_sync() and
configure_time_sync() from napalm-device-types 4.35.0's
PosixTimeSyncMixin (#2361): one reading as the login user, the zone by
timedatectl, chrony's servers in a file of their own with every other
source commented out, systemd-timesyncd's in a drop-in. The driver only
carries the commands across run_command.
The mixin comes in with PosixScheduledJobsMixin through LinuxPosixMixin,
the implementations napalm-device-types makes for any POSIX host, so
linux.py does not grow. OpenMediaVault and QNAP inherit both.
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
LinuxDrivergetsget_time_sync()andconfigure_time_sync()from napalm-device-types 4.35.0'sPosixTimeSyncMixin: chrony, systemd-timesyncd,timedatectl; the driver only carries the commands acrossrun_command.PosixScheduledJobsMixinandPosixTimeSyncMixincome in together throughLinuxPosixMixin(napalm_linux/_posix.py), solinux.pydoes not grow past its ratchet baseline. OpenMediaVault and QNAP inherit both.get_ntp_servers(); nothing to keep consistent there.Related Issue
NetOrk/netork#2361 (part of NetOrk/netork#2360, time sync)
Testing
pytest(406 passed),ruff,mypy,napalm-standard checkandratchetlocally, against the napalm-device-types branchfeature/time-sync-2361.