[virt-tools-list] [PATCH v2 virt-manager 2/2] network: refresh the XML definition on state update

Giuseppe Scrivano gscrivan at redhat.com
Mon Jul 7 10:03:23 UTC 2014


The XML definition returned by libvirt can change on a state
transition. vmmNetwork.force_update_status invalidates the old
definition.

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 virtManager/network.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/virtManager/network.py b/virtManager/network.py
index 4ad4c94..e6d80ef 100644
--- a/virtManager/network.py
+++ b/virtManager/network.py
@@ -78,6 +78,7 @@ class vmmNetwork(vmmLibvirtObject):
     def _set_active(self, state):
         if state == self._active:
             return
+        self.refresh_xml()
         self.idle_emit(state and "started" or "stopped")
         self._active = state
 
-- 
1.9.3




More information about the virt-tools-list mailing list