summaryrefslogtreecommitdiff
path: root/libvirt-override-virNetwork.py
blob: 6e865906b901e76c222ca612653e9b4db3e094e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
    def listAllPorts(self, flags=0):
        """List all ports on the network and returns a list of network port objects"""
        ret = libvirtmod.virNetworkListAllPorts(self._o, flags)
        if ret is None:
            raise libvirtError("virNetworkListAllPorts() failed", conn=self)

        retlist = list()
        for domptr in ret:
            retlist.append(virNetworkPort(self, _obj=domptr))

        return retlist