24 lines
888 B
Diff
24 lines
888 B
Diff
|
Subject: network: refresh the XML definition on state update
|
||
|
From: Giuseppe Scrivano gscrivan@redhat.com Thu Jul 3 13:55:50 2014 +0200
|
||
|
Date: Tue Jul 8 00:05:09 2014 +0200:
|
||
|
Git: cbb18b0e9626faa08d8f017a9e02466e5ba7b767
|
||
|
|
||
|
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@redhat.com>
|
||
|
|
||
|
Index: virt-manager-1.0.1/virtManager/network.py
|
||
|
===================================================================
|
||
|
--- virt-manager-1.0.1.orig/virtManager/network.py
|
||
|
+++ virt-manager-1.0.1/virtManager/network.py
|
||
|
@@ -80,6 +80,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
|
||
|
|