blob: 9714af41fe7a56e1b2e0529580db7b6fae279350 (
plain)
1
2
3
4
5
6
7
|
def listAllPorts(self, flags: int = 0) -> List['virNetworkPort']:
"""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")
return [virNetworkPort(self, _obj=domptr) for domptr in ret]
|