mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 06:50:22 +00:00
parallels: set correct network adapter link state
when a new network adapter device is added Signed-off-by: Maxim Nestratov <mnestratov@parallels.com>
This commit is contained in:
parent
50e0a1bff8
commit
46f4a532d5
@ -2660,7 +2660,9 @@ static int prlsdkAddNet(PRL_HANDLE sdkdom,
|
|||||||
pret = PrlVmDev_SetEnabled(sdknet, 1);
|
pret = PrlVmDev_SetEnabled(sdknet, 1);
|
||||||
prlsdkCheckRetGoto(pret, cleanup);
|
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);
|
prlsdkCheckRetGoto(pret, cleanup);
|
||||||
|
|
||||||
if (net->ifname) {
|
if (net->ifname) {
|
||||||
|
Loading…
Reference in New Issue
Block a user