mirror of https://github.com/apache/cloudstack.git
bug 12931: Add conserve mode in network offering response
This commit is contained in:
parent
17189b1a89
commit
8f2cd77c87
|
|
@ -52,6 +52,9 @@ public class NetworkOfferingResponse extends BaseResponse{
|
|||
@SerializedName(ApiConstants.SPECIFY_VLAN) @Param(description="true if network offering supports vlans, false otherwise")
|
||||
private Boolean specifyVlan;
|
||||
|
||||
@SerializedName(ApiConstants.CONSERVE_MODE) @Param(description="true if network offering is ip conserve mode enabled")
|
||||
private Boolean conserveMode;
|
||||
|
||||
@SerializedName(ApiConstants.AVAILABILITY) @Param(description="availability of the network offering")
|
||||
private String availability;
|
||||
|
||||
|
|
@ -102,6 +105,10 @@ public class NetworkOfferingResponse extends BaseResponse{
|
|||
this.specifyVlan = specifyVlan;
|
||||
}
|
||||
|
||||
public void setConserveMode(Boolean conserveMode) {
|
||||
this.conserveMode = conserveMode;
|
||||
}
|
||||
|
||||
public void setAvailability(String availability) {
|
||||
this.availability = availability;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2583,6 +2583,7 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
response.setTrafficType(offering.getTrafficType().toString());
|
||||
response.setIsDefault(offering.isDefault());
|
||||
response.setSpecifyVlan(offering.getSpecifyVlan());
|
||||
response.setConserveMode(offering.isConserveMode());
|
||||
response.setAvailability(offering.getAvailability().toString());
|
||||
response.setNetworkRate(ApiDBUtils.getNetworkRate(offering.getId()));
|
||||
if (offering.getServiceOfferingId() != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue