[virt-tools-list] [PATCH virt-manager] connection: refresh domain XML on device hotplug

Cole Robinson crobinso at redhat.com
Wed Apr 29 13:55:10 UTC 2015


On 04/29/2015 05:00 AM, Ján Tomko wrote:
> 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, and pushed.... before I read your disclaimer, I thought maybe giuseppe
was waiting for me. Will revert if it comes to it

Thanks,
Cole




More information about the virt-tools-list mailing list