From nobody Sat Feb 7 18:15:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1561037028; cv=none; d=zoho.com; s=zohoarc; b=KbTpIV7g254v42oI9L07gnL8IdLC8wRTeaZ/rJLAZj4VXZhjdCW2Z3QwE+/ROyRjRk9jXooBUIL55vYW5+mk3wGEgajga5/EPOpXcEzSba1DIM4An0x3DkjotXDjCQMnzlEb1NzfK0d2QNd9R4yMe63vRdEYQ3srUg9XVafUJ24= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561037028; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=n1Iqm8/hDzh7R3AzRBvb8QiwaBrNOOoqEU/agmiYAb0=; b=Hyr+FEsr/INsg2vJAeHo7gYUSanan7NIGfS0hNjqGKvIIp3Msm6c3wJWH02/7kRx8d+Y+cigEsMftVW0sujnNc/EhwI0v9HzzhMEJue2cMyNN9qpwu2gUr71yeHGhDyw/psJ0Zp8CF+eENma8j1mihkJFwi99UT2xPE3voVYXLw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1561037028582608.3575541835387; Thu, 20 Jun 2019 06:23:48 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CFA0C30860A7; Thu, 20 Jun 2019 13:23:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 960FB19C5B; Thu, 20 Jun 2019 13:23:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9661E206D4; Thu, 20 Jun 2019 13:23:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5KDN4NA028948 for ; Thu, 20 Jun 2019 09:23:04 -0400 Received: by smtp.corp.redhat.com (Postfix) id B3CB819C67; Thu, 20 Jun 2019 13:23:04 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0509D19C4F; Thu, 20 Jun 2019 13:23:03 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 20 Jun 2019 14:22:53 +0100 Message-Id: <20190620132257.6233-2-berrange@redhat.com> In-Reply-To: <20190620132257.6233-1-berrange@redhat.com> References: <20190620132257.6233-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH python 1/5] Fix syntax error with missing ; and too many ) X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 20 Jun 2019 13:23:47 +0000 (UTC) Signed-off-by: Daniel P. Berrang=C3=A9 --- libvirt-override.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt-override.c b/libvirt-override.c index ea14e1e..c73305b 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -10032,7 +10032,7 @@ libvirt_virNetworkPortGetParameters(PyObject *self = ATTRIBUTE_UNUSED, if (rc < 0) return VIR_PY_NONE; =20 - dict =3D getPyVirTypedParameter(params, nparams))) + dict =3D getPyVirTypedParameter(params, nparams); =20 virTypedParamsFree(params, nparams); return dict; --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sat Feb 7 18:15:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1561037052; cv=none; d=zoho.com; s=zohoarc; b=E1ysQETZ6k6UROL7NvaDehCS3UH+4RgktKLmPznyICDeZfcRznYopHtsmvcI/OjSFJlFBeuwdBvCDxuCvUtH5Dy6R6dYizDn+QbIVQhUxFl3bJJ1qbEyfpru1dsi0BkkP3Ft5LKJsP38Gz++6gdfcacbGC/wvV/2hhCstVxU0M8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561037052; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=H50gXkOwNOLXwAYxzLsufIsEATqaDkk6qCmYE7wXjQc=; b=QLsJ/gvoLi9CvxefAnIQ0pAo372OIygNplSfdjf8Do/waMgxn30aIeZNsWZbq8zazCtnCjUdGFX6m2kLbTX2cKKZC/kferMrpAHhngMOZOFfDWxGV1hUdgPEbHawjajU0s51lFyQyCcHSZx68QkZPwHb9jbVMV1/PY7Pu35u6yE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1561037052799732.2441425305566; Thu, 20 Jun 2019 06:24:12 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C70CC3162907; Thu, 20 Jun 2019 13:24:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D88218B13; Thu, 20 Jun 2019 13:24:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 33E551806B15; Thu, 20 Jun 2019 13:23:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5KDN5uW028955 for ; Thu, 20 Jun 2019 09:23:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id CF84B19C5B; Thu, 20 Jun 2019 13:23:05 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 22F2519C4F; Thu, 20 Jun 2019 13:23:04 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 20 Jun 2019 14:22:54 +0100 Message-Id: <20190620132257.6233-3-berrange@redhat.com> In-Reply-To: <20190620132257.6233-1-berrange@redhat.com> References: <20190620132257.6233-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH python 2/5] Define virNetworkPortPtr typedef on old libvirt X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 20 Jun 2019 13:24:11 +0000 (UTC) Signed-off-by: Daniel P. Berrang=C3=A9 --- typewrappers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typewrappers.h b/typewrappers.h index e4983b2..518ad00 100644 --- a/typewrappers.h +++ b/typewrappers.h @@ -30,6 +30,9 @@ typedef ssize_t Py_ssize_t; #if !LIBVIR_CHECK_VERSION(4, 5, 0) typedef struct _virNWFilterBinding *virNWFilterBindingPtr; #endif +#if !LIBVIR_CHECK_VERSION(5, 5, 0) +typedef struct _virNetworkPort *virNetworkPortPtr; +#endif =20 #define PyvirConnect_Get(v) (((v) =3D=3D Py_None) ? NULL : \ (((PyvirConnect_Object *)(v))->obj)) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sat Feb 7 18:15:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1561037050; cv=none; d=zoho.com; s=zohoarc; b=CEkRMyuDz6PGOeN2rzBg+uiPGJGlsO1CHgQATFnNxiXNOz+DC8e0CuqYfJXYZU67RVMxzkXTGY9BvsHdLguLSsDQwo44D6K3h5FdV2+6eDiHoP/m1u/wDMWXmQ+geQ+Jun3Vvd5upiePOfjWF2HvWLWbYnHx8AT/cPdIGHH4L7M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561037050; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=S5fnoseJWqyuZdx4pBqlLbadkAuNQDGiVrday+uHFfA=; b=STL2/VYDqZVOGcVemXGK890P0yK59fx5sfsIdnE3SPcwrcTRDVZF17W7ikD5PRG6HmtQUVoCFFdNEfHmx9DvRIo3CmXBY3T+zxWIEnZUdNd1IARmHi6nDMwb1R0cmJTGcHfNvgqRbMOLtxv6JoEvg4InGkLupiXEc0Mv0Yd0csc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1561037050389539.4382156270933; Thu, 20 Jun 2019 06:24:10 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4664230F1BB7; Thu, 20 Jun 2019 13:24:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 195175D9D2; Thu, 20 Jun 2019 13:24:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B895A206D8; Thu, 20 Jun 2019 13:24:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5KDN7ds028960 for ; Thu, 20 Jun 2019 09:23:07 -0400 Received: by smtp.corp.redhat.com (Postfix) id 025D119C67; Thu, 20 Jun 2019 13:23:07 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4137D19C4F; Thu, 20 Jun 2019 13:23:06 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 20 Jun 2019 14:22:55 +0100 Message-Id: <20190620132257.6233-4-berrange@redhat.com> In-Reply-To: <20190620132257.6233-1-berrange@redhat.com> References: <20190620132257.6233-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH python 3/5] generator: fix naming of getter APIs for virNetworkPort X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 20 Jun 2019 13:24:09 +0000 (UTC) Signed-off-by: Daniel P. Berrang=C3=A9 --- generator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator.py b/generator.py index ab5144d..9dedc18 100755 --- a/generator.py +++ b/generator.py @@ -1213,6 +1213,9 @@ def nameFixup(name, classe, type, file): elif name[0:9] =3D=3D "virDomain": func =3D name[9:] func =3D func[0:1].lower() + func[1:] + elif name[0:17] =3D=3D "virNetworkPortGet": + func =3D name[17:] + func =3D func[0:1].lower() + func[1:] elif name[0:13] =3D=3D "virNetworkGet": func =3D name[13:] func =3D func[0:1].lower() + func[1:] --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sat Feb 7 18:15:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1561037074; cv=none; d=zoho.com; s=zohoarc; b=Co7MwfkwEbCZ+SqyK/0cd/E2i9N0zl97gv000tHPTNS0mjI9LKFdp852HQbXeceENP7jmOhPxThmbk4eRPA59wwO97uCQmxXuAI8w7FN+Qo2oH1i5emb4FrPpWro3PKdzwTQiCCKjgY5KXRW+dhPS1Ni2u2EUd+2yl3u2GMMpHA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561037074; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=HQcGO4zHZwjp78INGwE1cGOW53aPdmGEKezgwwrb5lY=; b=beOWP4kVdAT+xnxAHH271bSb52PKlpScilXzbxvDYqanHdZ//qFJaxVjt92c1StvUAp/+sIQC67hI8u2mYqb8yl4tyYtskCxB/NTnwi3uMjMU0++woattWkGwPuQ8mA4isRc4ROxZGzLHDm4nP9NKYAB+oMy7MMMDs6RccSgfH4= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 15610370744527.330037642131174; Thu, 20 Jun 2019 06:24:34 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C47A1307D866; Thu, 20 Jun 2019 13:24:17 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 973B718A51; Thu, 20 Jun 2019 13:24:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 55E7F1806B18; Thu, 20 Jun 2019 13:24:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5KDN84i028973 for ; Thu, 20 Jun 2019 09:23:08 -0400 Received: by smtp.corp.redhat.com (Postfix) id 19E6B19722; Thu, 20 Jun 2019 13:23:08 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F68919C5B; Thu, 20 Jun 2019 13:23:07 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 20 Jun 2019 14:22:56 +0100 Message-Id: <20190620132257.6233-5-berrange@redhat.com> In-Reply-To: <20190620132257.6233-1-berrange@redhat.com> References: <20190620132257.6233-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH python 4/5] sanitytest: add some special cases for virNetworkPort APIs X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 20 Jun 2019 13:24:33 +0000 (UTC) Signed-off-by: Daniel P. Berrang=C3=A9 --- 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): =20 # 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", "GetNetwo= rk"]: if klass =3D=3D "virStream" and func =3D=3D "New": klass =3D "virConnect" func =3D "NewStream" @@ -272,6 +272,9 @@ for name in sorted(basicklassmap): elif klass =3D=3D "virStorageVol" and func in ["StorageVolCreateXM= LFrom", "StorageVolCreateXML"]: klass =3D "virStoragePool" func =3D func[10:] + elif klass =3D=3D "virNetworkPort": + klass =3D "virNetwork" + func =3D func[7:] elif func =3D=3D "StoragePoolLookupByVolume": klass =3D "virStorageVol" elif func =3D=3D "StorageVolLookupByName": --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sat Feb 7 18:15:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1561037013; cv=none; d=zoho.com; s=zohoarc; b=SHrReuP4ObMTlIbmXMIXhbu2bSBdpECJDrraHXsD47AAJmMhkZv2etrPtL8Ser7LcHdtciKc9DNjKW38vMJsYQ8W0UBTStEIW26Ywxkch17/SJrD/WAIiuewXcRDN523tx0ImNg4KEorH1cCcz7nK4tS3a4tAclCVm8cDKjpjkw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561037013; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=EnWwKpTjD2TisnjxqDR93p9apweSs+JiEnvatFME8M8=; b=hjwsofFSmeX+Et/lDobXBBi1mpwg+5219NAIjZjv3uadNRMaQwwyo337dilhipCAUwCeTdgEVCPlR22D3F0IJAniA7IZYotKYuZz4F4Hnf28HF3cSDs4/cLhc+5S5/6uEIFCXFc4oMPosYVZAB4HHLUAVFp2u6FZfR7xEPtKDYs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1561037013188481.97239236475366; Thu, 20 Jun 2019 06:23:33 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 29BCE30872F5; Thu, 20 Jun 2019 13:23:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 00A301001DDC; Thu, 20 Jun 2019 13:23:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5672A1806B0F; Thu, 20 Jun 2019 13:23:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x5KDN9sW028980 for ; Thu, 20 Jun 2019 09:23:09 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3D89919C5B; Thu, 20 Jun 2019 13:23:09 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 764C719C4F; Thu, 20 Jun 2019 13:23:08 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 20 Jun 2019 14:22:57 +0100 Message-Id: <20190620132257.6233-6-berrange@redhat.com> In-Reply-To: <20190620132257.6233-1-berrange@redhat.com> References: <20190620132257.6233-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH python 5/5] Add missing impl of virNetworkListAllPorts X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 20 Jun 2019 13:23:31 +0000 (UTC) This API needs manual impl as the generator cannot cope Signed-off-by: Daniel P. Berrang=C3=A9 --- libvirt-override-virNetwork.py | 11 ++++++++ libvirt-override.c | 46 ++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 libvirt-override-virNetwork.py diff --git a/libvirt-override-virNetwork.py b/libvirt-override-virNetwork.py new file mode 100644 index 0000000..749ee44 --- /dev/null +++ b/libvirt-override-virNetwork.py @@ -0,0 +1,11 @@ + def listAllPorts(self, flags=3D0): + """List all domains and returns a list of domain objects""" + ret =3D libvirtmod.virNetworkListAllPorts(self._o, flags) + if ret is None: + raise libvirtError("virNetworkListAllPorts() failed", conn=3Ds= elf) + + retlist =3D list() + for domptr in ret: + retlist.append(virNetwork(self, _obj=3Ddomptr)) + + return retlist diff --git a/libvirt-override.c b/libvirt-override.c index c73305b..5ae4406 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -9946,6 +9946,51 @@ libvirt_virNodeGetSEVInfo(PyObject *self ATTRIBUTE_U= NUSED, #endif /* LIBVIR_CHECK_VERSION(4, 5, 0) */ =20 #if LIBVIR_CHECK_VERSION(5, 5, 0) +static PyObject * +libvirt_virNetworkListAllPorts(PyObject *self ATTRIBUTE_UNUSED, + PyObject *args) +{ + PyObject *pyobj_conn; + PyObject *py_retval =3D NULL; + virNetworkPtr conn; + virNetworkPortPtr *doms =3D NULL; + int c_retval =3D 0; + ssize_t i; + unsigned int flags; + + if (!PyArg_ParseTuple(args, (char *)"OI:virNetworkListAllPorts", + &pyobj_conn, &flags)) + return NULL; + conn =3D (virNetworkPtr) PyvirNetwork_Get(pyobj_conn); + + LIBVIRT_BEGIN_ALLOW_THREADS; + c_retval =3D virNetworkListAllPorts(conn, &doms, flags); + LIBVIRT_END_ALLOW_THREADS; + + if (c_retval < 0) + return VIR_PY_NONE; + + if (!(py_retval =3D PyList_New(c_retval))) + goto cleanup; + + for (i =3D 0; i < c_retval; i++) { + VIR_PY_LIST_SET_GOTO(py_retval, i, libvirt_virNetworkPortPtrWrap(d= oms[i]), error); + /* python steals the pointer */ + doms[i] =3D NULL; + } + + cleanup: + for (i =3D 0; i < c_retval; i++) + if (doms[i]) + virNetworkPortFree(doms[i]); + VIR_FREE(doms); + return py_retval; + + error: + Py_CLEAR(py_retval); + goto cleanup; +} + static PyObject * libvirt_virNetworkPortSetParameters(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) @@ -10286,6 +10331,7 @@ static PyMethodDef libvirtMethods[] =3D { {(char *) "virNodeGetSEVInfo", libvirt_virNodeGetSEVInfo, METH_VARARGS= , NULL}, #endif /* LIBVIR_CHECK_VERSION(4, 5, 0) */ #if LIBVIR_CHECK_VERSION(5, 5, 0) + {(char *) "virNetworkListAllPorts", libvirt_virNetworkListAllPorts, ME= TH_VARARGS, NULL}, {(char *) "virNetworkPortSetParameters", libvirt_virNetworkPortSetPara= meters, METH_VARARGS, NULL}, {(char *) "virNetworkPortGetParameters", libvirt_virNetworkPortGetPara= meters, METH_VARARGS, NULL}, #endif /* LIBVIR_CHECK_VERSION(5, 5, 0) */ --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list