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
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:
1 parent
10240c20bb
commit
c2e7ea5789
5 files changed
+129
-4
No files matched your search
@@ -41,7 +41,6 @@ from napalm_device_types import (
|
||||
LldpNeighborDict,
|
||||
OpenSshServerMixin,
|
||||
OSDriver,
|
||||
PosixScheduledJobsMixin,
|
||||
ServiceClustersMixin,
|
||||
ServicePackagesMixin,
|
||||
SnmpAgentMixin,
|
||||
@@ -78,6 +77,7 @@ from napalm_linux._dpkg import DPKG_QUERY_COMMAND, parse_dpkg_query
|
||||
from napalm_linux._hostname import HostnameMixin
|
||||
from napalm_linux._local_accounts import LinuxLocalAccountsMixin
|
||||
from napalm_linux._ping import parse_ping, ping_command
|
||||
from napalm_linux._posix import LinuxPosixMixin
|
||||
from napalm_linux._readings import LinuxProcessReadingsMixin
|
||||
from napalm_linux._routes import IP_ROUTE_COMMANDS, IpRoute, parse_ip_route, with_length
|
||||
from napalm_linux._shell import expect_for, prepare_shell, sudo_without_password
|
||||
@@ -310,7 +310,7 @@ class LinuxDriver(
|
||||
SystemIdentityMixin,
|
||||
OpenSshServerMixin,
|
||||
SystemdServicesMixin,
|
||||
PosixScheduledJobsMixin,
|
||||
LinuxPosixMixin,
|
||||
HostStatusMixin,
|
||||
ContainerEngineMixin,
|
||||
HostnameMixin,
|
||||
|
||||
Reference in new issue
Block a user