mirror of https://github.com/apache/cloudstack.git
Adding zone name to physicalnetworkresponse (#4510)
This commit is contained in:
parent
df07e27921
commit
93ff156222
|
|
@ -47,6 +47,10 @@ public class PhysicalNetworkResponse extends BaseResponse {
|
|||
@Param(description = "zone id of the physical network")
|
||||
private String zoneId;
|
||||
|
||||
@SerializedName(ApiConstants.ZONE_NAME)
|
||||
@Param(description = "zone name of the physical network")
|
||||
private String zoneName;
|
||||
|
||||
@SerializedName(ApiConstants.STATE)
|
||||
@Param(description = "state of the physical network")
|
||||
private String state;
|
||||
|
|
@ -85,6 +89,10 @@ public class PhysicalNetworkResponse extends BaseResponse {
|
|||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2545,6 +2545,7 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
DataCenter zone = ApiDBUtils.findZoneById(result.getDataCenterId());
|
||||
if (zone != null) {
|
||||
response.setZoneId(zone.getUuid());
|
||||
response.setZoneName(zone.getName());
|
||||
}
|
||||
response.setNetworkSpeed(result.getSpeed());
|
||||
response.setVlan(result.getVnetString());
|
||||
|
|
|
|||
Loading…
Reference in New Issue