summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2019-06-20 14:10:50 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2019-06-20 14:20:05 +0100
commitc4e529ff280bb913a5fbd3fe950c003b429d338b (patch)
tree37b48c1f92e0b6f94543cac5151fd8e403b172f4
parent05089cc402e4a297004a631ec665f5b8253c3497 (diff)
downloadlibvirt-python-c4e529ff280bb913a5fbd3fe950c003b429d338b.tar.gz
sanitytest: add some special cases for virNetworkPort APIs
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
-rw-r--r--sanitytest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sanitytest.py b/sanitytest.py
index 68dde6b..9743f6f 100644
--- a/sanitytest.py
+++ b/sanitytest.py
@@ -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":