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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/libvirt-override-virDomainSnapshot.py b/libvirt-override-virDomainSnapshot.py
index 3da7bfd..bf708a5 100644
--- a/libvirt-override-virDomainSnapshot.py
+++ b/libvirt-override-virDomainSnapshot.py
@@ -1,3 +1,11 @@
+ def getConnect(self):
+ """Get the connection that owns the domain that a snapshot was created for"""
+ return self.connect()
+
+ def getDomain(self):
+ """Get the domain that a snapshot was created for"""
+ return self.domain()
+
def listAllChildren(self, flags):
"""List all child snapshots and returns a list of snapshot objects"""
ret = libvirtmod.virDomainSnapshotListAllChildren(self._o, flags)