提交 46f4a532 编写于 作者: M Maxim Nestratov 提交者: Michal Privoznik

parallels: set correct network adapter link state

when a new network adapter device is added
Signed-off-by: NMaxim Nestratov <mnestratov@parallels.com>
上级 50e0a1bf
......@@ -2660,7 +2660,9 @@ static int prlsdkAddNet(PRL_HANDLE sdkdom,
pret = PrlVmDev_SetEnabled(sdknet, 1);
prlsdkCheckRetGoto(pret, cleanup);
pret = PrlVmDev_SetConnected(sdknet, net->linkstate);
pret = PrlVmDev_SetConnected(sdknet, net->linkstate !=
VIR_DOMAIN_NET_INTERFACE_LINK_STATE_DOWN);
prlsdkCheckRetGoto(pret, cleanup);
if (net->ifname) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册