From nobody Fri May 3 12:19:34 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1520340271335551.8410503673044; Tue, 6 Mar 2018 04:44:31 -0800 (PST) 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 7B8F6757CC; Tue, 6 Mar 2018 12:44:29 +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 252F460C89; Tue, 6 Mar 2018 12:44:29 +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 ED5CF18033EF; Tue, 6 Mar 2018 12:44:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w26CiGiv000629 for ; Tue, 6 Mar 2018 07:44:17 -0500 Received: by smtp.corp.redhat.com (Postfix) id D52E676FC; Tue, 6 Mar 2018 12:44:16 +0000 (UTC) Received: from t460.redhat.com (unknown [10.33.36.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4C772AFD70; Tue, 6 Mar 2018 12:44:16 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Tue, 6 Mar 2018 12:44:09 +0000 Message-Id: <20180306124410.20030-2-berrange@redhat.com> In-Reply-To: <20180306124410.20030-1-berrange@redhat.com> References: <20180306124410.20030-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: Laine Stump Subject: [libvirt] [PATCH perl 1/2] Add missing define_nwfilter and define_secret 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.26]); Tue, 06 Mar 2018 12:44:29 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Laine Stump --- Changes | 2 +- lib/Sys/Virt.pm | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index f560864..d2d9a94 100644 --- a/Changes +++ b/Changes @@ -2,7 +2,7 @@ Revision history for perl module Sys::Virt =20 4.2.0 2018-00-00 =20 - - XXX + - Add missing define_nwfilter and define_secret APIs in Sys::Virt =20 4.1.0 2018-03-05 =20 diff --git a/lib/Sys/Virt.pm b/lib/Sys/Virt.pm index 035cdb6..f93d122 100644 --- a/lib/Sys/Virt.pm +++ b/lib/Sys/Virt.pm @@ -315,6 +315,38 @@ sub define_network { return Sys::Virt::Network->_new(connection =3D> $self, xml =3D> $xml, = nocreate =3D> 1); } =20 +=3Ditem my $dom =3D $vmm->define_nwfilter($xml); + +Defines a new network filter based on the XML description +passed into the C<$xml> parameter. The returned object is an instance +of the L class. This method is not available with +unprivileged connections to the VMM. + +=3Dcut + +sub define_nwfilter { + my $self =3D shift; + my $xml =3D shift; + + return Sys::Virt::NWFilter->_new(connection =3D> $self, xml =3D> $xml,= nocreate =3D> 1); +} + +=3Ditem my $dom =3D $vmm->define_secret($xml); + +Defines a new secret based on the XML description +passed into the C<$xml> parameter. The returned object is an instance +of the L class. This method is not available with +unprivileged connections to the VMM. + +=3Dcut + +sub define_secret { + my $self =3D shift; + my $xml =3D shift; + + return Sys::Virt::Secret->_new(connection =3D> $self, xml =3D> $xml, n= ocreate =3D> 1); +} + =3Ditem my $dom =3D $vmm->create_storage_pool($xml); =20 Create a new storage pool based on the XML description passed into the C<$= xml> --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 12:19:34 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1520340308807610.9189578271754; Tue, 6 Mar 2018 04:45:08 -0800 (PST) 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 43EC1883CE; Tue, 6 Mar 2018 12:45:07 +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 14E6760C89; Tue, 6 Mar 2018 12:45:07 +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 BEB3B18033E9; Tue, 6 Mar 2018 12:45:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w26CiH6R000635 for ; Tue, 6 Mar 2018 07:44:17 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9FC4876C5; Tue, 6 Mar 2018 12:44:17 +0000 (UTC) Received: from t460.redhat.com (unknown [10.33.36.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 162D4AFD70; Tue, 6 Mar 2018 12:44:16 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Tue, 6 Mar 2018 12:44:10 +0000 Message-Id: <20180306124410.20030-3-berrange@redhat.com> In-Reply-To: <20180306124410.20030-1-berrange@redhat.com> References: <20180306124410.20030-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: Laine Stump Subject: [libvirt] [PATCH perl 2/2] Fix docs for Sys::Virt::NWFilter undefine method 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.26]); Tue, 06 Mar 2018 12:45:07 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Laine Stump --- Changes | 1 + lib/Sys/Virt/NWFilter.pm | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index d2d9a94..016fcf2 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Revision history for perl module Sys::Virt 4.2.0 2018-00-00 =20 - Add missing define_nwfilter and define_secret APIs in Sys::Virt + - Misc docs fixes =20 4.1.0 2018-03-05 =20 diff --git a/lib/Sys/Virt/NWFilter.pm b/lib/Sys/Virt/NWFilter.pm index 8ede8a0..980532d 100644 --- a/lib/Sys/Virt/NWFilter.pm +++ b/lib/Sys/Virt/NWFilter.pm @@ -91,10 +91,8 @@ the network's configuration =20 =3Ditem $filter->undefine() =20 -Remove the configuration associated with a network previously defined -with the C method in L. If the network is -running, you probably want to use the C or C -methods instead. +Remove the configuration associated with a network filter previously defin= ed +with the C method in L. =20 =3Dcut =20 --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list