1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

Fix bugs in nwfilter binding APIs

We did not correctly mangle the API names in two cases, and we also
forgot to specialize the lookup method name in the sanity test.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2018-06-28 12:29:21 +01:00
parent d5aae37c61
commit c1f06dde29
2 changed files with 5 additions and 2 deletions

View File

@ -1127,7 +1127,10 @@ def nameFixup(name, classe, type, file):
func = func[0:1].lower() + func[1:]
elif name[0:27] == "virNWFilterBindingCreateXML":
func = name[3:]
func = func[0:1].lower() + func[1:]
func = func[0:3].lower() + func[3:]
elif name[0:24] == "virNWFilterBindingLookup":
func = name[3:]
func = func[0:3].lower() + func[3:]
elif name[0:24] == "virNWFilterBindingDefine":
func = name[3:]
func = func[0:3].lower() + func[3:]

View File

@ -260,7 +260,7 @@ for name in sorted(basicklassmap):
"LookupByUUIDString", "LookupByVolume" "LookupByName",
"LookupByID", "LookupByName", "LookupByKey", "LookupByPath",
"LookupByMACString", "LookupByUsage", "LookupByVolume",
"LookupByTargetPath","LookupSCSIHostByWWN",
"LookupByTargetPath","LookupSCSIHostByWWN", "LookupByPortDev",
"Restore", "RestoreFlags",
"SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags"]:
if klass != "virDomain":