mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-15 01:49:26 +03:00
Add virDomainCheckpoint APIs
Copies heavily from existing virDomainSnapshot handling, regarding what special cases the generator has to be taught and what overrides need to be written. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@ -11,6 +11,19 @@
|
||||
return retlist
|
||||
|
||||
|
||||
def listAllCheckpoints(self, flags=0):
|
||||
"""List all checkpoints and returns a list of checkpoint objects"""
|
||||
ret = libvirtmod.virDomainListAllCheckpoints(self._o, flags)
|
||||
if ret is None:
|
||||
raise libvirtError("virDomainListAllCheckpoints() failed", conn=self)
|
||||
|
||||
retlist = list()
|
||||
for chkptr in ret:
|
||||
retlist.append(virDomainCheckpoint(self, _obj=chkptr))
|
||||
|
||||
return retlist
|
||||
|
||||
|
||||
def createWithFiles(self, files, flags=0):
|
||||
"""Launch a defined domain. If the call succeeds the domain moves from the
|
||||
defined to the running domains pools.
|
||||
|
Reference in New Issue
Block a user