diff --git a/api/src/com/cloud/api/response/StorageNetworkIpRangeResponse.java b/api/src/com/cloud/api/response/StorageNetworkIpRangeResponse.java index 8491674a2f1..1506c828fc6 100755 --- a/api/src/com/cloud/api/response/StorageNetworkIpRangeResponse.java +++ b/api/src/com/cloud/api/response/StorageNetworkIpRangeResponse.java @@ -12,20 +12,23 @@ public class StorageNetworkIpRangeResponse extends BaseResponse { @SerializedName(ApiConstants.VLAN) @Param(description="the ID or VID of the VLAN.") private Integer vlan; - @SerializedName(ApiConstants.POD_ID) @Param(description="the Pod uuid for the VLAN IP range") + @SerializedName(ApiConstants.POD_ID) @Param(description="the Pod uuid for the storage network IP range") private String podUuid; - @SerializedName(ApiConstants.START_IP) @Param(description="the start ip of the VLAN IP range") + @SerializedName(ApiConstants.START_IP) @Param(description="the start ip of the storage network IP range") private String startIp; - @SerializedName(ApiConstants.END_IP) @Param(description="the end ip of the VLAN IP range") + @SerializedName(ApiConstants.END_IP) @Param(description="the end ip of the storage network IP range") private String endIp; - @SerializedName(ApiConstants.NETWORK_ID) @Param(description="the network uuid of vlan range") + @SerializedName(ApiConstants.NETWORK_ID) @Param(description="the network uuid of storage network IP range") private String networkUuid; - @SerializedName(ApiConstants.ZONE_ID) @Param(description="the Zone uuid of the VLAN IP range") + @SerializedName(ApiConstants.ZONE_ID) @Param(description="the Zone uuid of the storage network IP range") private String zoneUuid; + + @SerializedName(ApiConstants.NETMASK) @Param(description="the netmask of the storage network IP range") + private String netmask; public void setUuid(String uuId) { this.uuid = uuid; @@ -54,4 +57,8 @@ public class StorageNetworkIpRangeResponse extends BaseResponse { public void setNetworkUuid(String networkUuid) { this.networkUuid = networkUuid; } + + public void setNetmask(String netmask) { + this.netmask = netmask; + } } diff --git a/api/src/com/cloud/dc/StorageNetworkIpRange.java b/api/src/com/cloud/dc/StorageNetworkIpRange.java index c24329b1731..8cffa6ea0c6 100755 --- a/api/src/com/cloud/dc/StorageNetworkIpRange.java +++ b/api/src/com/cloud/dc/StorageNetworkIpRange.java @@ -14,4 +14,6 @@ public interface StorageNetworkIpRange { String getNetworkUuid(); String getZoneUuid(); + + String getNetmask(); } diff --git a/server/src/com/cloud/api/ApiResponseHelper.java b/server/src/com/cloud/api/ApiResponseHelper.java index 693c7197770..04b9d0cac02 100755 --- a/server/src/com/cloud/api/ApiResponseHelper.java +++ b/server/src/com/cloud/api/ApiResponseHelper.java @@ -3284,6 +3284,7 @@ public class ApiResponseHelper implements ResponseGenerator { response.setPodUuid(result.getPodUuid()); response.setZoneUuid(result.getZoneUuid()); response.setNetworkUuid(result.getNetworkUuid()); + response.setNetmask(result.getNetmask()); response.setObjectName("storagenetworkiprange"); return response; }