2013-01-23 12:14:57 +01:00
|
|
|
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()
|
|
|
|
|
2012-06-09 09:55:36 -06:00
|
|
|
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
|