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

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

 



On 07/03/2014 08:13 AM, Giuseppe Scrivano wrote:
> 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@xxxxxxxxxx>
> ---
>  virtManager/network.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/virtManager/network.py b/virtManager/network.py
> index 4ad4c94..ad1102f 100644
> --- a/virtManager/network.py
> +++ b/virtManager/network.py
> @@ -87,6 +87,7 @@ class vmmNetwork(vmmLibvirtObject):
>              return
>  
>          try:
> +            self.refresh_xml()
>              self._set_active(self._backend_get_active())
>          except:
>              logging.debug("force_update_status: Triggering network "
> 

I'd stick this in _set_active, once we confirm the guest status has actually
changed. That's what's done in the similar function in domain.py (we should
really unify the internal APIs here, but that's a separate task)

- Cole

_______________________________________________
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