[libvirt] [PATCH 4/7] parallels: set network adapter device status to connected

Michal Privoznik mprivozn at redhat.com
Tue Mar 17 14:14:52 UTC 2015


On 13.03.2015 16:52, Maxim Nestratov wrote:
> when a new network adapter device is added
> 
> Signed-off-by: Maxim Nestratov <mnestratov at parallels.com>
> ---
>  src/parallels/parallels_sdk.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c
> index f581fbb..9588163 100644
> --- a/src/parallels/parallels_sdk.c
> +++ b/src/parallels/parallels_sdk.c
> @@ -2653,7 +2653,7 @@ static int prlsdkAddNet(PRL_HANDLE sdkdom, parallelsConnPtr privconn, virDomainN
>      pret = PrlVmDev_SetEnabled(sdknet, 1);
>      prlsdkCheckRetGoto(pret, cleanup);
>  
> -    pret = PrlVmDev_SetConnected(sdknet, net->linkstate);
> +    pret = PrlVmDev_SetConnected(sdknet, 1);
>      prlsdkCheckRetGoto(pret, cleanup);
>  
>      if (net->ifname) {
> 

Why? net->linkstate contains the link state requested by user in XML. I
think we should honour user's configuration.

Michal




More information about the libvir-list mailing list