RunningBackupsMixin.get_running_backups(): the backups running on a device right now, each with its kind (backup, sync, verify, gc, prune, tape), job, task, start and the guests a hypervisor is backing up in it.
Declared only, opt-in like VmStopRequestMixin: no role demands it, and a driver without it cannot tell.
Release 4.34.0 in the same PR: napalm-proxmox and napalm-linux implement it and need it on PyPI.
## Summary
- `RunningBackupsMixin.get_running_backups()`: the backups running on a device right now, each with its kind (backup, sync, verify, gc, prune, tape), job, task, start and the guests a hypervisor is backing up in it.
- Declared only, opt-in like `VmStopRequestMixin`: no role demands it, and a driver without it cannot tell.
- Release 4.34.0 in the same PR: napalm-proxmox and napalm-linux implement it and need it on PyPI.
## Related Issue
NetOrk/netork#2318 (no reboot while a backup is running)
## Testing
- `pytest tests` (1490 passed), `ruff`, `mypy`, `napalm-standard check` and `ratchet` locally.
A restart aborts every backup that runs on the device it restarts, and a
guest's restart breaks the backup its hypervisor is taking of it. netOrk
asks right before it restarts a host after patching (NetOrk/netork#2318),
so the reading belongs in the contract first: RunningBackupsMixin declares
get_running_backups(), opt-in like VmStopRequestMixin, so hasattr tells a
caller whether the driver can tell at all.
Release 4.34.0: the drivers that implement it need it on PyPI.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
RunningBackupsMixin.get_running_backups(): the backups running on a device right now, each with its kind (backup, sync, verify, gc, prune, tape), job, task, start and the guests a hypervisor is backing up in it.VmStopRequestMixin: no role demands it, and a driver without it cannot tell.Related Issue
NetOrk/netork#2318 (no reboot while a backup is running)
Testing
pytest tests(1490 passed),ruff,mypy,napalm-standard checkandratchetlocally.