From ef131bbc187a0bf2f92d8094cbabc5d752af6a37 Mon Sep 17 00:00:00 2001 From: Kris McQueen Date: Mon, 25 Oct 2010 17:08:38 -0700 Subject: [PATCH] bug 6724: set useVirtualNetwork in the createServiceResponse status 6724: resolved fixed --- server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java b/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java index 81f3e5329ef..e5a1c903f96 100644 --- a/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java +++ b/server/src/com/cloud/api/commands/CreateServiceOfferingCmd.java @@ -25,6 +25,7 @@ import com.cloud.api.BaseCmd.Manager; import com.cloud.api.Implementation; import com.cloud.api.Parameter; import com.cloud.api.response.ServiceOfferingResponse; +import com.cloud.offering.NetworkOffering.GuestIpType; import com.cloud.service.ServiceOfferingVO; @Implementation(method="createServiceOffering", manager=Manager.ConfigManager, description="Creates a service offering.") @@ -127,6 +128,7 @@ public class CreateServiceOfferingCmd extends BaseCmd { response.setOfferHa(offering.getOfferHA()); response.setStorageType(offering.getUseLocalStorage() ? "local" : "shared"); response.setTags(offering.getTags()); + response.setUseVirtualNetwork(offering.getGuestIpType().equals(GuestIpType.Virtualized)); response.setResponseName(getName()); return response;