| 1 | def listAllPorts(self, flags: Optional[int] = 0) -> list['virNetworkPort']: |
| 2 | """List all ports on the network and returns a list of network port objects""" |
| 3 | ret = libvirtmod.virNetworkListAllPorts(self._o, flags) |
| 4 | if ret is None: |
| 5 | raise libvirtError("virNetworkListAllPorts() failed") |
| 6 | |
| 7 | return [virNetworkPort(self, _obj=domptr) for domptr in ret] |