fix: switch off the inherited set_hostname (#13)
driver / standard (pull_request) Successful in 15s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m8s
driver / test (3.12) (pull_request) Successful in 1m7s
driver / test (3.13) (pull_request) Successful in 59s
driver / lowest (pull_request) Successful in 28s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 1m6s
CI / driver (pull_request) Successful in 2m44s
driver / publish (pull_request) Skipped

napalm-linux now renames a host through hostnamectl and /etc/hostname
(NAPALM/napalm-linux#45). On QTS that would report success and be gone
after the next boot: the name lives in uLinux.conf, /etc in RAM. Off like
the other inherited actions QTS cannot take, so netOrk says the name is
kept in netOrk only; a QTS rename follows once it can be built against a
real box (#13).
This commit is contained in:
Christian Manivong committed 2026-10-29 23:11:05 +01:00
1 parent 88656dc34c
commit 00c8391cab
3 files changed
+19

No files matched your search

+11
View File
@@ -224,6 +224,17 @@ def test_updates_are_not_read_or_applied_here():
assert not callable(getattr(QnapQtsDriver, method, None)), method
def test_hostname_is_not_set_here():
"""QTS keeps its name in ``/etc/config/uLinux.conf`` and ``/etc`` in RAM: the
``hostnamectl``/``/etc/hostname`` rename inherited from LinuxDriver would report
success and be gone after the next boot. Off until a QTS rename is built against
harvested output (#13)."""
from napalm_linux.linux import LinuxDriver
assert callable(getattr(LinuxDriver, "set_hostname", None))
assert not callable(getattr(QnapQtsDriver, "set_hostname", None))
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