[virt-tools-list] [PATCH virt-manager] connection: refresh domain XML on device hotplug
Giuseppe Scrivano
gscrivan at redhat.com
Wed Apr 29 13:27:28 UTC 2015
Ján Tomko <jtomko at redhat.com> 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 at redhat.com>
> ---
> 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
More information about the virt-tools-list
mailing list