Ján Tomko <jtomko@xxxxxxxxxx> writes: > Listen to the VIR_DOMAIN_EVENT_ID_DEVICE_ADDED event > too, added by libvirt 1.2.15. > > https://bugzilla.redhat.com/show_bug.cgi?id=1179138 > > Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx> > --- > Libvirt 1.2.15 is scheduled for release this weekend. While the API is unlikely > to change, it is not final until then. > > virtManager/connection.py | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/virtManager/connection.py b/virtManager/connection.py > index e1a0061..beef5f4 100644 > --- a/virtManager/connection.py > +++ b/virtManager/connection.py > @@ -775,6 +775,9 @@ class vmmConnection(vmmGObject): > _add_domain_xml_event( > getattr(libvirt, "VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED", 15), > "device removed") > + _add_domain_xml_event( > + getattr(libvirt, "VIR_DOMAIN_EVENT_ID_DEVICE_ADDED", 19), > + "device added") > > try: > if _disable_libvirt_events: ACK. I haven't pushed it yet. Regards, Giuseppe _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list