[PATCH python 4/5] sanitytest: add some special cases for virNetworkPort APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 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.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux