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

Re: [libvirt] [PATCH 1/2] network: remove autostart flag from network when undefining it



On 04/17/2013 04:40 AM, Peter Krempa wrote:
> When turning a started persistent network into a transient one we forgot
> to remove the autostart flag that is no longer valid at that point.
> ---
>  src/network/bridge_driver.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
> index e8b314a..bca6bd9 100644
> --- a/src/network/bridge_driver.c
> +++ b/src/network/bridge_driver.c
> @@ -3193,6 +3193,7 @@ networkUndefine(virNetworkPtr net) {
>
>      /* make the network transient */
>      network->persistent = 0;
> +    network->autostart = 0;
>      virNetworkDefFree(network->newDef);
>      network->newDef = NULL;
>

ACK.


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