feat(time-sync): the host's time sources and zone through PosixTimeSyncMixin
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 14s
driver / types (pull_request) Successful in 1m0s
driver / test (3.13) (pull_request) Successful in 56s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / lowest (pull_request) Successful in 30s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Successful in 2m11s
driver / publish (pull_request) Skipped

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.
This commit is contained in:
Christian Manivong committed 2026-11-11 14:32:29 +01:00
1 parent 10240c20bb
commit c2e7ea5789
5 files changed
+129 -4

No files matched your search

+9 -1
View File
@@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- `get_time_sync()` and `configure_time_sync()` through napalm-device-types'
`PosixTimeSyncMixin` (4.35.0): the host's NTP servers in its client's order, its time zone,
whether the clock is synchronised and which client keeps it (chrony, systemd-timesyncd,
ntpd, OpenNTPD), read in one round trip as the login user. The zone is set with
`timedatectl set-timezone`; chrony's servers go to `/etc/chrony/sources.d/netork.sources`
(else a `confdir` or an included file) with every other source commented out,
systemd-timesyncd's to `/etc/systemd/timesyncd.conf.d/netork.conf`. The host ends up with
exactly the servers given (NetOrk/netork#2361). OpenMediaVault and QNAP inherit it.
- `get_running_backups()` through napalm-device-types' `RunningBackupsMixin` (4.34.0): the
host's own backups a restart would abort -- a process of restic, resticprofile, autorestic,
borg, borgmatic, duplicity, duply, rsnapshot, rdiff-backup, proxmox-backup-client, kopia or
@@ -25,7 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
admin groups. The account stays open and logs in with its other keys only.
### Changed
- Needs napalm-device-types 4.34.0.
- Needs napalm-device-types 4.35.0.
## [0.17.0] - 2026-11-04