Skip to content

Commit b59c3c5

Browse files
author
frank
committed
return netmask in listStorageNetworkIpRangeCmd
1 parent 67ed483 commit b59c3c5

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

api/src/com/cloud/api/response/StorageNetworkIpRangeResponse.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@ public class StorageNetworkIpRangeResponse extends BaseResponse {
1212
@SerializedName(ApiConstants.VLAN) @Param(description="the ID or VID of the VLAN.")
1313
private Integer vlan;
1414

15-
@SerializedName(ApiConstants.POD_ID) @Param(description="the Pod uuid for the VLAN IP range")
15+
@SerializedName(ApiConstants.POD_ID) @Param(description="the Pod uuid for the storage network IP range")
1616
private String podUuid;
1717

18-
@SerializedName(ApiConstants.START_IP) @Param(description="the start ip of the VLAN IP range")
18+
@SerializedName(ApiConstants.START_IP) @Param(description="the start ip of the storage network IP range")
1919
private String startIp;
2020

21-
@SerializedName(ApiConstants.END_IP) @Param(description="the end ip of the VLAN IP range")
21+
@SerializedName(ApiConstants.END_IP) @Param(description="the end ip of the storage network IP range")
2222
private String endIp;
2323

24-
@SerializedName(ApiConstants.NETWORK_ID) @Param(description="the network uuid of vlan range")
24+
@SerializedName(ApiConstants.NETWORK_ID) @Param(description="the network uuid of storage network IP range")
2525
private String networkUuid;
2626

27-
@SerializedName(ApiConstants.ZONE_ID) @Param(description="the Zone uuid of the VLAN IP range")
27+
@SerializedName(ApiConstants.ZONE_ID) @Param(description="the Zone uuid of the storage network IP range")
2828
private String zoneUuid;
29+
30+
@SerializedName(ApiConstants.NETMASK) @Param(description="the netmask of the storage network IP range")
31+
private String netmask;
2932

3033
public void setUuid(String uuId) {
3134
this.uuid = uuid;
@@ -54,4 +57,8 @@ public void setEndIp(String endIp) {
5457
public void setNetworkUuid(String networkUuid) {
5558
this.networkUuid = networkUuid;
5659
}
60+
61+
public void setNetmask(String netmask) {
62+
this.netmask = netmask;
63+
}
5764
}

api/src/com/cloud/dc/StorageNetworkIpRange.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ public interface StorageNetworkIpRange {
1414
String getNetworkUuid();
1515

1616
String getZoneUuid();
17+
18+
String getNetmask();
1719
}

server/src/com/cloud/api/ApiResponseHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3284,6 +3284,7 @@ public StorageNetworkIpRangeResponse createStorageNetworkIpRangeResponse(Storage
32843284
response.setPodUuid(result.getPodUuid());
32853285
response.setZoneUuid(result.getZoneUuid());
32863286
response.setNetworkUuid(result.getNetworkUuid());
3287+
response.setNetmask(result.getNetmask());
32873288
response.setObjectName("storagenetworkiprange");
32883289
return response;
32893290
}

0 commit comments

Comments
 (0)