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 @@ -448,6 +448,7 @@ public class ApiConstants {
448448 public static final String SENT = "sent" ;
449449 public static final String SENT_BYTES = "sentbytes" ;
450450 public static final String SERIAL = "serial" ;
451+ public static final String SERVICE_IP = "serviceip" ;
451452 public static final String SERVICE_OFFERING_ID = "serviceofferingid" ;
452453 public static final String SESSIONKEY = "sessionkey" ;
453454 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 ;
@@ -122,6 +127,10 @@ public Date getLastBoot() {
122127 return lastBoot ;
123128 }
124129
130+ public String getServiceIp () {
131+ return serviceIp ;
132+ }
133+
125134 public String getIpAddress () {
126135 return ipAddress ;
127136 }
@@ -170,6 +179,10 @@ public void setKernelVersion(String kernelVersion) {
170179 this .kernelVersion = kernelVersion ;
171180 }
172181
182+ public void setServiceIp (String serviceIp ) {
183+ this .serviceIp = serviceIp ;
184+ }
185+
173186 public void setIpAddress (String ipAddress ) {
174187 this .ipAddress = ipAddress ;
175188 }
Original file line number Diff line number Diff line change @@ -5445,6 +5445,7 @@ protected ManagementServerResponse createManagementServerResponse(ManagementServ
54455445 mgmtResponse .addPeer (createPeerManagementServerNodeResponse (peer ));
54465446 }
54475447 }
5448+ mgmtResponse .setServiceIp (mgmt .getServiceIP ());
54485449 mgmtResponse .setIpAddress (mgmt .getServiceIP ());
54495450 mgmtResponse .setObjectName ("managementserver" );
54505451 return mgmtResponse ;
You can’t perform that action at this time.
0 commit comments