summaryrefslogtreecommitdiffstats
path: root/libvirt-override-virDomainSnapshot.py
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt-override-virDomainSnapshot.py')
-rw-r--r--libvirt-override-virDomainSnapshot.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/libvirt-override-virDomainSnapshot.py b/libvirt-override-virDomainSnapshot.py
new file mode 100644
index 0000000..3da7bfd
--- /dev/null
+++ b/libvirt-override-virDomainSnapshot.py
@@ -0,0 +1,11 @@
+ def listAllChildren(self, flags):
+ """List all child snapshots and returns a list of snapshot objects"""
+ ret = libvirtmod.virDomainSnapshotListAllChildren(self._o, flags)
+ if ret is None:
+ raise libvirtError("virDomainSnapshotListAllChildren() failed", conn=self)
+
+ retlist = list()
+ for snapptr in ret:
+ retlist.append(virDomainSnapshot(self, _obj=snapptr))
+
+ return retlist