File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
api/src/main/java/org/apache/cloudstack/api
server/src/main/java/com/cloud/api/query Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,7 @@ public class ApiConstants {
463463 public static final String SENT = "sent" ;
464464 public static final String SENT_BYTES = "sentbytes" ;
465465 public static final String SERIAL = "serial" ;
466+ public static final String SERVICE_IP = "serviceip" ;
466467 public static final String SERVICE_OFFERING_ID = "serviceofferingid" ;
467468 public static final String SESSIONKEY = "sessionkey" ;
468469 public static final String SHOW_CAPACITIES = "showcapacities" ;
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ public class ManagementServerResponse extends BaseResponse {
7474 @ Param (description = "the running OS kernel version for this Management Server" )
7575 private String kernelVersion ;
7676
77+ @ Deprecated
78+ @ SerializedName (ApiConstants .SERVICE_IP )
79+ @ Param (description = "the IP Address for this Management Server. This is deprecated, please use 'ipaddress' instead." )
80+ private String serviceIp ;
81+
7782 @ SerializedName (ApiConstants .IP_ADDRESS )
7883 @ Param (description = "the IP Address for this Management Server" )
7984 private String ipAddress ;
@@ -138,6 +143,10 @@ public Date getLastBoot() {
138143 return lastBoot ;
139144 }
140145
146+ public String getServiceIp () {
147+ return serviceIp ;
148+ }
149+
141150 public String getIpAddress () {
142151 return ipAddress ;
143152 }
@@ -202,6 +211,10 @@ public void setKernelVersion(String kernelVersion) {
202211 this .kernelVersion = kernelVersion ;
203212 }
204213
214+ public void setServiceIp (String serviceIp ) {
215+ this .serviceIp = serviceIp ;
216+ }
217+
205218 public void setIpAddress (String ipAddress ) {
206219 this .ipAddress = ipAddress ;
207220 }
Original file line number Diff line number Diff line change @@ -5730,6 +5730,7 @@ protected ManagementServerResponse createManagementServerResponse(ManagementServ
57305730 mgmtResponse .setAgents (agents );
57315731 mgmtResponse .setAgentsCount ((long ) agents .size ());
57325732 mgmtResponse .setPendingJobsCount (jobManager .countPendingNonPseudoJobs (mgmt .getMsid ()));
5733+ mgmtResponse .setServiceIp (mgmt .getServiceIP ());
57335734 mgmtResponse .setIpAddress (mgmt .getServiceIP ());
57345735 mgmtResponse .setObjectName ("managementserver" );
57355736 return mgmtResponse ;
You can’t perform that action at this time.
0 commit comments