Skip to content

Commit 90f8300

Browse files
committed
Rename Service Ip to Ip Address in management server response
1 parent e0fe1c7 commit 90f8300

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

api/src/main/java/org/apache/cloudstack/api/ApiConstants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ public class ApiConstants {
437437
public static final String SENT = "sent";
438438
public static final String SENT_BYTES = "sentbytes";
439439
public static final String SERIAL = "serial";
440-
public static final String SERVICE_IP = "serviceip";
441440
public static final String SERVICE_OFFERING_ID = "serviceofferingid";
442441
public static final String SESSIONKEY = "sessionkey";
443442
public static final String SHOW_CAPACITIES = "showcapacities";

api/src/main/java/org/apache/cloudstack/api/response/ManagementServerResponse.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public class ManagementServerResponse extends BaseResponse {
7272
@Param(description = "the running OS kernel version for this Management Server")
7373
private String kernelVersion;
7474

75-
@SerializedName(ApiConstants.SERVICE_IP)
75+
@SerializedName(ApiConstants.IP_ADDRESS)
7676
@Param(description = "the IP Address for this Management Server")
77-
private String serviceIp;
77+
private String ipAddress;
7878

7979
public String getId() {
8080
return this.id;
@@ -116,8 +116,8 @@ public Date getLastBoot() {
116116
return lastBoot;
117117
}
118118

119-
public String getServiceIp() {
120-
return serviceIp;
119+
public String getIpAddress() {
120+
return ipAddress;
121121
}
122122

123123
public void setId(String id) {
@@ -164,8 +164,8 @@ public void setKernelVersion(String kernelVersion) {
164164
this.kernelVersion = kernelVersion;
165165
}
166166

167-
public void setServiceIp(String serviceIp) {
168-
this.serviceIp = serviceIp;
167+
public void setIpAddress(String ipAddress) {
168+
this.ipAddress = ipAddress;
169169
}
170170

171171
public String getKernelVersion() {

server/src/main/java/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5353,7 +5353,7 @@ protected ManagementServerResponse createManagementServerResponse(ManagementServ
53535353
mgmtResponse.setLastServerStart(mgmt.getLastJvmStart());
53545354
mgmtResponse.setLastServerStop(mgmt.getLastJvmStop());
53555355
mgmtResponse.setLastBoot(mgmt.getLastSystemBoot());
5356-
mgmtResponse.setServiceIp(mgmt.getServiceIP());
5356+
mgmtResponse.setIpAddress(mgmt.getServiceIP());
53575357
mgmtResponse.setObjectName("managementserver");
53585358
return mgmtResponse;
53595359
}

ui/src/config/section/infra/managementServers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ export default {
2626
permission: ['listManagementServersMetrics'],
2727
resourceType: 'ManagementServer',
2828
columns: () => {
29-
const fields = ['name', 'state', 'serviceip', 'version', 'osdistribution', 'agentcount']
29+
const fields = ['name', 'state', 'ipaddress', 'version', 'osdistribution', 'agentcount']
3030
const metricsFields = ['collectiontime', 'availableprocessors', 'cpuload', 'heapmemoryused']
3131
if (store.getters.metrics) {
3232
fields.push(...metricsFields)
3333
}
3434
return fields
3535
},
36-
details: ['serviceip', 'collectiontime', 'usageislocal', 'dbislocal', 'lastserverstart', 'lastserverstop', 'lastboottime', 'version', 'loginfo', 'systemtotalcpucycles', 'systemloadaverages', 'systemcycleusage', 'systemmemorytotal', 'systemmemoryfree', 'systemmemoryvirtualsize', 'availableprocessors', 'javadistribution', 'javaversion', 'osdistribution', 'kernelversion', 'agentcount', 'sessions', 'heapmemoryused', 'heapmemorytotal', 'threadsblockedcount', 'threadsdeamoncount', 'threadsnewcount', 'threadsrunnablecount', 'threadsterminatedcount', 'threadstotalcount', 'threadswaitingcount'],
36+
details: ['ipaddress', 'collectiontime', 'usageislocal', 'dbislocal', 'lastserverstart', 'lastserverstop', 'lastboottime', 'version', 'loginfo', 'systemtotalcpucycles', 'systemloadaverages', 'systemcycleusage', 'systemmemorytotal', 'systemmemoryfree', 'systemmemoryvirtualsize', 'availableprocessors', 'javadistribution', 'javaversion', 'osdistribution', 'kernelversion', 'agentcount', 'sessions', 'heapmemoryused', 'heapmemorytotal', 'threadsblockedcount', 'threadsdeamoncount', 'threadsnewcount', 'threadsrunnablecount', 'threadsterminatedcount', 'threadstotalcount', 'threadswaitingcount'],
3737
tabs: [
3838
{
3939
name: 'details',

0 commit comments

Comments
 (0)