summaryrefslogtreecommitdiffstats
path: root/libvirt-override-virDomain.py
blob: 142b1d461783eefe7ba856c5659eb3a64a1fa3ef (plain)
1
2
3
4
5
6
7
8
9
10
11
    def listAllSnapshots(self, flags=0):
        """List all snapshots and returns a list of snapshot objects"""
        ret = libvirtmod.virDomainListAllSnapshots(self._o, flags)
        if ret is None:
            raise libvirtError("virDomainListAllSnapshots() failed", conn=self)

        retlist = list()
        for snapptr in ret:
            retlist.append(virDomainSnapshot(self, _obj=snapptr))

        return retlist