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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:
-- 
2.0.5

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list





[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux