mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-04 20:23:46 +03:00
The fields have been deprecated in C with git:f60dc0bc09f09c6817d6706a9edb1579a3e2b2b8 They are only passed to the libvirtError constructor, but not stored for later or used anywhere else. sed -ri '/raise libvirtError/s/, \w+=self(\._dom)?//' *.py Signed-off-by: Philipp Hahn <hahn@univention.de>
12 lines
417 B
Python
12 lines
417 B
Python
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")
|
|
|
|
retlist = list()
|
|
for domptr in ret:
|
|
retlist.append(virNetworkPort(self, _obj=domptr))
|
|
|
|
return retlist
|