diff --git a/api/src/com/cloud/api/response/HostResponse.java b/api/src/com/cloud/api/response/HostResponse.java index 059220fe410..7fb9e270a73 100755 --- a/api/src/com/cloud/api/response/HostResponse.java +++ b/api/src/com/cloud/api/response/HostResponse.java @@ -119,6 +119,9 @@ public class HostResponse extends BaseResponse { @SerializedName("clustername") @Param(description="the cluster name of the host") private String clusterName; + + @SerializedName("clustertype") @Param(description="the cluster type of the cluster that host belongs to") + private String clusterType; @SerializedName("islocalstorageactive") @Param(description="true if local storage is active, false otherwise") private Boolean localStorageActive; @@ -389,6 +392,14 @@ public class HostResponse extends BaseResponse { public void setClusterName(String clusterName) { this.clusterName = clusterName; } + + public String getClusterType() { + return clusterType; + } + + public void setClusterType(String clusterType) { + this.clusterType = clusterType; + } public Boolean isLocalStorageActive() { return localStorageActive; diff --git a/server/src/com/cloud/api/ApiResponseHelper.java b/server/src/com/cloud/api/ApiResponseHelper.java index 7dec7f07366..4a9f7b54310 100644 --- a/server/src/com/cloud/api/ApiResponseHelper.java +++ b/server/src/com/cloud/api/ApiResponseHelper.java @@ -519,6 +519,7 @@ public class ApiResponseHelper implements ResponseGenerator { if (host.getClusterId() != null) { ClusterVO cluster = ApiDBUtils.findClusterById(host.getClusterId()); hostResponse.setClusterName(cluster.getName()); + hostResponse.setClusterType(cluster.getClusterType().toString()); } hostResponse.setLocalStorageActive(ApiDBUtils.isLocalStorageActiveOnHost(host)); diff --git a/ui/jsp/cluster.jsp b/ui/jsp/cluster.jsp index dd7cbc18604..46acf93b443 100644 --- a/ui/jsp/cluster.jsp +++ b/ui/jsp/cluster.jsp @@ -94,31 +94,66 @@ - -