]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
parallels: don't prevent domain define if VIR_DOMAIN_NET_TYPE_BRIDGE
authorMaxim Nestratov <mnestratov@parallels.com>
Wed, 18 Mar 2015 08:33:57 +0000 (11:33 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 18 Mar 2015 17:23:41 +0000 (18:23 +0100)
network adapter is used

src/parallels/parallels_sdk.c

index 1dd812b5ef2787e35cd1472968e9eb5a8dcdc5b0..c36b772c3c38af96d2246e01c0bfa530031ddda7 100644 (file)
@@ -2251,7 +2251,8 @@ static int prlsdkCheckSerialUnsupportedParams(virDomainChrDefPtr chr)
 
 static int prlsdkCheckNetUnsupportedParams(virDomainNetDefPtr net)
 {
-    if (net->type != VIR_DOMAIN_NET_TYPE_NETWORK) {
+    if (net->type != VIR_DOMAIN_NET_TYPE_NETWORK &&
+        net->type != VIR_DOMAIN_NET_TYPE_BRIDGE) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                        _("Specified network adapter type is not "
                          "supported by Parallels Cloud Server."));