mirror of https://github.com/apache/cloudstack.git
mgmt: add back serviceip in ManagementServerResponse (#10891)
* mgmt: add back serviceip in ManagementServerResponse * api: add Deprecated annotation to serviceip
This commit is contained in:
parent
34896a1ada
commit
d0dc6d8093
|
|
@ -448,6 +448,7 @@ public class ApiConstants {
|
|||
public static final String SENT = "sent";
|
||||
public static final String SENT_BYTES = "sentbytes";
|
||||
public static final String SERIAL = "serial";
|
||||
public static final String SERVICE_IP = "serviceip";
|
||||
public static final String SERVICE_OFFERING_ID = "serviceofferingid";
|
||||
public static final String SESSIONKEY = "sessionkey";
|
||||
public static final String SHOW_CAPACITIES = "showcapacities";
|
||||
|
|
|
|||
|
|
@ -74,6 +74,11 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
@Param(description = "the running OS kernel version for this Management Server")
|
||||
private String kernelVersion;
|
||||
|
||||
@Deprecated
|
||||
@SerializedName(ApiConstants.SERVICE_IP)
|
||||
@Param(description = "the IP Address for this Management Server. This is deprecated, please use 'ipaddress' instead.")
|
||||
private String serviceIp;
|
||||
|
||||
@SerializedName(ApiConstants.IP_ADDRESS)
|
||||
@Param(description = "the IP Address for this Management Server")
|
||||
private String ipAddress;
|
||||
|
|
@ -122,6 +127,10 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
return lastBoot;
|
||||
}
|
||||
|
||||
public String getServiceIp() {
|
||||
return serviceIp;
|
||||
}
|
||||
|
||||
public String getIpAddress() {
|
||||
return ipAddress;
|
||||
}
|
||||
|
|
@ -170,6 +179,10 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
this.kernelVersion = kernelVersion;
|
||||
}
|
||||
|
||||
public void setServiceIp(String serviceIp) {
|
||||
this.serviceIp = serviceIp;
|
||||
}
|
||||
|
||||
public void setIpAddress(String ipAddress) {
|
||||
this.ipAddress = ipAddress;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5445,6 +5445,7 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
|||
mgmtResponse.addPeer(createPeerManagementServerNodeResponse(peer));
|
||||
}
|
||||
}
|
||||
mgmtResponse.setServiceIp(mgmt.getServiceIP());
|
||||
mgmtResponse.setIpAddress(mgmt.getServiceIP());
|
||||
mgmtResponse.setObjectName("managementserver");
|
||||
return mgmtResponse;
|
||||
|
|
|
|||
Loading…
Reference in New Issue