Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -122,6 +127,10 @@ public Date getLastBoot() {
return lastBoot;
}

public String getServiceIp() {
return serviceIp;
}

public String getIpAddress() {
return ipAddress;
}
Expand Down Expand Up @@ -170,6 +179,10 @@ public void setKernelVersion(String kernelVersion) {
this.kernelVersion = kernelVersion;
}

public void setServiceIp(String serviceIp) {
this.serviceIp = serviceIp;
}

public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5445,6 +5445,7 @@ protected ManagementServerResponse createManagementServerResponse(ManagementServ
mgmtResponse.addPeer(createPeerManagementServerNodeResponse(peer));
}
}
mgmtResponse.setServiceIp(mgmt.getServiceIP());
mgmtResponse.setIpAddress(mgmt.getServiceIP());
mgmtResponse.setObjectName("managementserver");
return mgmtResponse;
Expand Down