mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
vz: specify VIR_DOMAIN_NET_TYPE_NETWORK for routed networks
Somehow we lost this during recent refactoring Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
This commit is contained in:
parent
0f13dc81d7
commit
0970a066d1
@ -978,6 +978,7 @@ prlsdkGetNetInfo(PRL_HANDLE netAdapter, virDomainNetDefPtr net, bool isCt)
|
||||
/* venet devices don't have mac address and
|
||||
* always up */
|
||||
net->linkstate = VIR_DOMAIN_NET_INTERFACE_LINK_STATE_UP;
|
||||
net->type = VIR_DOMAIN_NET_TYPE_NETWORK;
|
||||
if (VIR_STRDUP(net->data.network.name,
|
||||
PARALLELS_DOMAIN_ROUTED_NETWORK_NAME) < 0)
|
||||
goto cleanup;
|
||||
@ -1001,6 +1002,7 @@ prlsdkGetNetInfo(PRL_HANDLE netAdapter, virDomainNetDefPtr net, bool isCt)
|
||||
prlsdkCheckRetGoto(pret, cleanup);
|
||||
|
||||
if (emulatedType == PNA_ROUTED) {
|
||||
net->type = VIR_DOMAIN_NET_TYPE_NETWORK;
|
||||
if (VIR_STRDUP(net->data.network.name,
|
||||
PARALLELS_DOMAIN_ROUTED_NETWORK_NAME) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user