Re: [PATCH] network: fully support/use VIR_NETWORK_XML_INACTIVE flag

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

 



On 06/11/2012 05:06 PM, Eric Blake wrote:
> On 06/11/2012 02:54 PM, Laine Stump wrote:
>> commit 52d064f42dbc857f4096dc60c0335395ffac73aa added
>> VIR_NETWORK_XML_INACTIVE in order to allow suppressing the
>> auto-generated list of VFs in network definitions, and a --inactive
>> flag to virsh net-dumpxml to take advantage of the flag. However, it
>> missed out on two oppurtunities:
> s/oppurtunities/opportunities/


Urg. I *always* make that mistake, but am so accustomed to Thunderbird
underlining bad spelling that I miss it in commit messages.


>> 1) Use INACTIVE to get the current config of the network as it
>>    exists on disk, rather than the currently active config.
>>
>> 2) Add INACTIVE to the flags used for the virsh net-edit command, so
>>    that it won't include the forward-pool interfaces that were
>>    autogenerated, and so that a re-edit of the network prior to
>>    restarting it will show any other edits made since the last restart
>>    of the network. (prior to this patch, if you edited a network a 2nd
>>    time without restarting, all of the previous edits would magically
>>    disappear).
>>
>> In order to fit with the new #define-based generic edit function in
>> virsh.c, a new function vshNetworkGetXMLDesc() was added. This
>> function first tries to call virNetworkGetXMLDesc with the INACTIVE
>> flag added, then retries without if the first attempt fails (in the
>> manner expected when the server doesn't support it).,
> s/,$//
>
> Incomplete: virsh.pod should mention that 'net-edit' behaves like
> 'net-dumpxml --inactive' (see how we documented 'edit').
>
> ACK with that addition.
>

Fixed as suggested, and pushed. Thanks!


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]