[Pkg-libvirt-commits] [Git][libvirt-team/libvirt-python][upstream/latest] New upstream version 12.5.0
Pino Toscano (@pino)
gitlab at salsa.debian.org
Mon Jul 6 04:50:11 BST 2026
Pino Toscano pushed to branch upstream/latest at Libvirt Packaging Team / libvirt-python
Commits:
4dce3742 by Pino Toscano at 2026-07-06T05:47:05+02:00
New upstream version 12.5.0
- - - - -
7 changed files:
- ChangeLog
- PKG-INFO
- VERSION
- generator.py
- libvirt-override-api.xml
- libvirt-override.c
- libvirt-python.spec
Changes:
=====================================
ChangeLog
=====================================
@@ -1,3 +1,13 @@
+ 2026- 6- 9 Michal Privoznik <mprivozn at redhat.com>
+
+ Add support for virDomainAnnounceInterface() API
+
+
+ 2026- 6- 1 Jiri Denemark <jdenemar at redhat.com>
+
+ Post-release version bump to 12.5.0
+
+
2026- 5- 25 Michal Privoznik <mprivozn at redhat.com>
Add support for domain channel lifecycle event
=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: libvirt-python
-Version: 12.4.0
+Version: 12.5.0
Summary: The libvirt virtualization API python binding
Home-page: http://www.libvirt.org
Maintainer: Libvirt Maintainers
=====================================
VERSION
=====================================
@@ -1 +1 @@
-12.4.0
+12.5.0
=====================================
generator.py
=====================================
@@ -463,6 +463,7 @@ skip_impl = {
'virDomainRestoreParams',
'virDomainGetAutostartOnce',
'virDomainSetThrottleGroup',
+ 'virDomainAnnounceInterface',
'virDomainLxcOpenNamespace',
=====================================
libvirt-override-api.xml
=====================================
@@ -879,5 +879,13 @@
<arg name='params' type='virTypedParameterPtr' info='pointer to blkio parameter objects'/>
<arg name='flags' type='int' info='an OR'ed set of virDomainModificationImpact'/>
</function>
+ <function name='virDomainAnnounceInterface' file='python'>
+ <info>Cause this domain to "announce" its network interfaces by injecting a series of "gratuitous ARP" packets into the outgoing data stream for the interface matching @device (or all interfaces).</info>
+ <return type='int' info='0 in case of success and -1 in case of failure'/>
+ <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
+ <arg name='device' type='const char *' info='the interface name or mac address, or None to announce all interfaces'/>
+ <arg name='params' type='virTypedParameterPtr' info='parameters containing announce attributes'/>
+ <arg name='flags' type='unsigned int' info='currently unused, pass 0'/>
+ </function>
</symbols>
</api>
=====================================
libvirt-override.c
=====================================
@@ -11165,6 +11165,57 @@ libvirt_virDomainSetThrottleGroup(PyObject *self ATTRIBUTE_UNUSED,
#endif /* LIBVIR_CHECK_VERSION(11, 2, 0) */
+#if LIBVIR_CHECK_VERSION(12, 5, 0)
+static virPyTypedParamsHint virPyDomainAnnounceInterfaceParams[] = {
+ { VIR_DOMAIN_ANNOUNCE_INTERFACE_INITIAL, VIR_TYPED_PARAM_UINT },
+ { VIR_DOMAIN_ANNOUNCE_INTERFACE_MAX, VIR_TYPED_PARAM_UINT },
+ { VIR_DOMAIN_ANNOUNCE_INTERFACE_ROUNDS, VIR_TYPED_PARAM_UINT },
+ { VIR_DOMAIN_ANNOUNCE_INTERFACE_STEP, VIR_TYPED_PARAM_UINT },
+};
+
+
+static PyObject *
+libvirt_virDomainAnnounceInterface(PyObject *self ATTRIBUTE_UNUSED,
+ PyObject *args)
+{
+ PyObject *pyobj_dom = NULL;
+ PyObject *pyobj_dict = NULL;
+ virDomainPtr dom = NULL;
+ const char *device = NULL;
+ virTypedParameterPtr params = NULL;
+ int nparams = 0;
+ unsigned int flags = 0;
+ int c_retval;
+
+ if (!PyArg_ParseTuple(args, (char *)"OzO|I:virDomainAnnounceInterface",
+ &pyobj_dom, &device, &pyobj_dict, &flags))
+ return NULL;
+
+ if (PyDict_Check(pyobj_dict)) {
+ if (virPyDictToTypedParams(pyobj_dict, ¶ms, &nparams,
+ virPyDomainAnnounceInterfaceParams,
+ VIR_N_ELEMENTS(virPyDomainAnnounceInterfaceParams)) < 0) {
+ return NULL;
+ }
+ } else {
+ PyErr_Format(PyExc_TypeError, "Announce params must be a dictionary");
+ return NULL;
+ }
+
+ dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
+
+ LIBVIRT_BEGIN_ALLOW_THREADS;
+ c_retval = virDomainAnnounceInterface(dom, device, params, nparams, flags);
+ LIBVIRT_END_ALLOW_THREADS;
+
+ virTypedParamsFree(params, nparams);
+
+ return libvirt_intWrap(c_retval);
+}
+#endif /* LIBVIR_CHECK_VERSION(12, 5, 0) */
+
+
+
/************************************************************************
* *
* The registration stuff *
@@ -11453,6 +11504,9 @@ static PyMethodDef libvirtMethods[] = {
{(char *) "virDomainGetAutostartOnce", libvirt_virDomainGetAutostartOnce, METH_VARARGS, NULL},
{(char *) "virDomainSetThrottleGroup", libvirt_virDomainSetThrottleGroup, METH_VARARGS, NULL},
#endif /* LIBVIR_CHECK_VERSION(11, 2, 0) */
+#if LIBVIR_CHECK_VERSION(12, 5, 0)
+ {(char *) "virDomainAnnounceInterface", libvirt_virDomainAnnounceInterface, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(12, 5, 0) */
{NULL, NULL, 0, NULL}
};
=====================================
libvirt-python.spec
=====================================
@@ -16,7 +16,7 @@
Summary: The libvirt virtualization API python3 binding
Name: libvirt-python
-Version: 12.4.0
+Version: 12.5.0
Release: 1%{?dist}
Source0: https://libvirt.org/sources/python/%{dist_name}-%{version}.tar.gz
Url: https://libvirt.org
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt-python/-/commit/4dce374251d0a06f7af996ef5a94e99f49618e30
--
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt-python/-/commit/4dce374251d0a06f7af996ef5a94e99f49618e30
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20260706/7f2862a1/attachment-0001.htm>
More information about the Pkg-libvirt-commits
mailing list