Add new override file to dist
[libvirt-python/ericb.git] / libvirt-override-virNetwork.py
blob749ee446525d6a890eb061713a663edc36de85c3
1 def listAllPorts(self, flags=0):
2 """List all domains and returns a list of domain objects"""
3 ret = libvirtmod.virNetworkListAllPorts(self._o, flags)
4 if ret is None:
5 raise libvirtError("virNetworkListAllPorts() failed", conn=self)
7 retlist = list()
8 for domptr in ret:
9 retlist.append(virNetwork(self, _obj=domptr))
11 return retlist