mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
The following four functions have not changed because default arguments have to come after positional arguments. Changing them will break the the binding APIs. migrate(self, dconn, flags, dname, uri, bandwidth): migrate2(self, dconn, dxml, flags, dname, uri, bandwidth): migrateToURI(self, duri, flags, dname, bandwidth): migrateToURI2(self, dconnuri, miguri, dxml, flags, dname, bandwidth):
20 lines
706 B
Python
20 lines
706 B
Python
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=0):
|
|
"""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
|