mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
vz: use PRL_USE_VNET_NAME_FOR_BRIDGE_NAME
It is better not to assume that newly created network should be connected to a bridge with same name, but specify it explicitly by PRL_USE_VNET_NAME_FOR_BRIDGE_NAME flag. Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
This commit is contained in:
parent
4edf01c92c
commit
7d73ca06ce
@ -2958,7 +2958,9 @@ static int prlsdkAddNet(PRL_HANDLE sdkdom,
|
||||
pret = PrlVirtNet_SetNetworkType(vnet, PVN_BRIDGED_ETHERNET);
|
||||
prlsdkCheckRetGoto(pret, cleanup);
|
||||
|
||||
job = PrlSrv_AddVirtualNetwork(privconn->server, vnet, 0);
|
||||
job = PrlSrv_AddVirtualNetwork(privconn->server,
|
||||
vnet,
|
||||
PRL_USE_VNET_NAME_FOR_BRIDGE_NAME);
|
||||
if (PRL_FAILED(pret = waitJob(job)))
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user