1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-03 08:21:58 +03:00

sanitytest: add some special cases for virNetworkPort APIs

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé
2019-06-20 14:10:50 +01:00
parent 05089cc402
commit c4e529ff28

View File

@ -220,7 +220,7 @@ for name in sorted(basicklassmap):
# The object lifecycle APIs are irrelevant since they're
# used inside the object constructors/destructors.
if func in ["Ref", "Free", "New", "GetConnect", "GetDomain"]:
if func in ["Ref", "Free", "New", "GetConnect", "GetDomain", "GetNetwork"]:
if klass == "virStream" and func == "New":
klass = "virConnect"
func = "NewStream"
@ -272,6 +272,9 @@ for name in sorted(basicklassmap):
elif klass == "virStorageVol" and func in ["StorageVolCreateXMLFrom", "StorageVolCreateXML"]:
klass = "virStoragePool"
func = func[10:]
elif klass == "virNetworkPort":
klass = "virNetwork"
func = func[7:]
elif func == "StoragePoolLookupByVolume":
klass = "virStorageVol"
elif func == "StorageVolLookupByName":