fix(time-sync): switch off the POSIX time sync on QTS
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m9s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 1m1s
driver / lowest (pull_request) Successful in 34s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 1m12s
CI / driver (pull_request) Successful in 2m51s
driver / publish (pull_request) Skipped

napalm-linux now brings napalm-device-types' PosixTimeSyncMixin (4.35.0). QTS has no systemd and no timedatectl, and its NTP client and time zone are QTS settings: the inherited reading finds no client there and every write fails its step, a difference netOrk could report on every poll but never fix (NetOrk/netork#2370). get_time_sync and configure_time_sync are None, so a capability check answers no, until a QTS variant is built against a real box. The floor rises to napalm-device-types 4.35.0.
This commit is contained in:
Christian Manivong committed 2026-11-11 15:18:56 +01:00
1 parent 28eb954eda
commit f1d191c52a
5 files changed
+25 -1

No files matched your search

+13
View File
@@ -248,6 +248,19 @@ def test_personal_accounts_are_not_managed_here():
assert not callable(getattr(QnapQtsDriver, action, None))
def test_time_sync_is_not_read_or_set_here():
"""QTS has no systemd and no ``timedatectl``, and its NTP client and zone are QTS
settings: the POSIX reading inherited from LinuxDriver finds no client there, and
its write fails. Off until a QTS variant is built against a real box
(NetOrk/netork#2370), so netOrk neither reports a difference it cannot fix nor
tries to fix it."""
from napalm_linux.linux import LinuxDriver
for method in ("get_time_sync", "configure_time_sync"):
assert callable(getattr(LinuxDriver, method, None)), method
assert not callable(getattr(QnapQtsDriver, method, None)), method
class TestFixesQtsCannotTake:
"""QTS has no apt, dnf or opkg, and its SNMP agent is configured in its own UI:
the fix templates inherited from LinuxDriver are switched off (#7), so a