[libvirt] [PATCH 6/6] vz: specify VIR_DOMAIN_NET_TYPE_NETWORK for routed networks

Maxim Nestratov mnestratov at virtuozzo.com
Wed Aug 10 17:44:38 UTC 2016


Somehow we lost this during recent refactoring

Signed-off-by: Maxim Nestratov <mnestratov at virtuozzo.com>
---
 src/vz/vz_sdk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index 02f83da..7e5ec91 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -977,6 +977,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;
@@ -1000,6 +1001,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;
-- 
1.8.3.1




More information about the libvir-list mailing list