From c4e529ff280bb913a5fbd3fe950c003b429d338b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 20 Jun 2019 14:10:50 +0100 Subject: [PATCH] sanitytest: add some special cases for virNetworkPort APIs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- sanitytest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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": -- 2.11.4.GIT