feat(updates): the update history of an apt host from apt's own log (NetOrk/netork#2728)
get_update_history through napalm-device-types' AptHistoryMixin, over run_command as the login user. Another package manager raises NotImplementedError. Requires napalm-device-types 4.47.0.
This commit is contained in:
1 parent
670e62e0f0
commit
66b6068ebf
5 files changed
+126
-6
No files matched your search
@@ -1,8 +1,9 @@
|
||||
"""What napalm-device-types implements for any POSIX host over ``run_command``.
|
||||
"""What napalm-device-types implements for a Linux host over ``run_command``.
|
||||
|
||||
The driver supplies ``run_command``; the readings, their parses and the writes are
|
||||
the mixins': scheduled jobs (cron, anacron, systemd timers) and time sync (chrony,
|
||||
systemd-timesyncd, ``timedatectl``). Their default paths are Debian's, which a
|
||||
the mixins': scheduled jobs (cron, anacron, systemd timers), time sync (chrony,
|
||||
systemd-timesyncd, ``timedatectl``), and on an apt host the update history from
|
||||
apt's own log (``_update_history``). Their default paths are Debian's, which a
|
||||
Linux host shares.
|
||||
"""
|
||||
|
||||
@@ -10,6 +11,8 @@ from __future__ import annotations
|
||||
|
||||
from napalm_device_types import PosixScheduledJobsMixin, PosixTimeSyncMixin
|
||||
|
||||
from napalm_linux._update_history import LinuxUpdateHistoryMixin
|
||||
|
||||
class LinuxPosixMixin(PosixScheduledJobsMixin, PosixTimeSyncMixin):
|
||||
"""Scheduled jobs and time sync of the host, over the driver's ``run_command``."""
|
||||
|
||||
class LinuxPosixMixin(PosixScheduledJobsMixin, PosixTimeSyncMixin, LinuxUpdateHistoryMixin):
|
||||
"""Scheduled jobs, time sync and the update history, over the driver's ``run_command``."""
|
||||
Reference in new issue
Block a user