File tree Expand file tree Collapse file tree 3 files changed +14
-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 +14
-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,10 @@ public class ManagementServerResponse extends BaseResponse {
7474 @ Param (description = "the running OS kernel version for this Management Server" )
7575 private String kernelVersion ;
7676
77+ @ SerializedName (ApiConstants .SERVICE_IP )
78+ @ Param (description = "the IP Address for this Management Server. This is deprecated, please use 'ipaddress' instead." )
79+ private String serviceIp ;
80+
7781 @ SerializedName (ApiConstants .IP_ADDRESS )
7882 @ Param (description = "the IP Address for this Management Server" )
7983 private String ipAddress ;
@@ -122,6 +126,10 @@ public Date getLastBoot() {
122126 return lastBoot ;
123127 }
124128
129+ public String getServiceIp () {
130+ return serviceIp ;
131+ }
132+
125133 public String getIpAddress () {
126134 return ipAddress ;
127135 }
@@ -170,6 +178,10 @@ public void setKernelVersion(String kernelVersion) {
170178 this .kernelVersion = kernelVersion ;
171179 }
172180
181+ public void setServiceIp (String serviceIp ) {
182+ this .serviceIp = serviceIp ;
183+ }
184+
173185 public void setIpAddress (String ipAddress ) {
174186 this .ipAddress = ipAddress ;
175187 }
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