Skip to content
Open
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 @@ -126,6 +126,10 @@ public class SystemVmResponse extends BaseResponseWithAnnotations {
@Param(description = "the public netmask for the system VM")
private String publicNetmask;

@SerializedName("storageip")
@Param(description = "the ip address for the system VM on the storage network")
private String storageIp;

@SerializedName("templateid")
@Param(description = "the template ID for the system VM")
private String templateId;
Expand Down Expand Up @@ -355,6 +359,14 @@ public void setPublicNetmask(String publicNetmask) {
this.publicNetmask = publicNetmask;
}

public String getStorageIp() {
return storageIp;
}

public void setStorageIp(String storageIp) {
this.storageIp = storageIp;
}

public String getTemplateId() {
return templateId;
}
Expand Down
2 changes: 2 additions & 0 deletions server/src/main/java/com/cloud/api/ApiResponseHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,8 @@ public SystemVmResponse createSystemVmResponse(VirtualMachine vm) {
vmResponse.setPublicNetmask(singleNicProfile.getIPv4Netmask());
vmResponse.setGateway(singleNicProfile.getIPv4Gateway());
}
} else if (network.getTrafficType() == TrafficType.Storage) {
vmResponse.setStorageIp(singleNicProfile.getIPv4Address());
}
}
}
Expand Down
1 change: 1 addition & 0 deletions ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2426,6 +2426,7 @@
"label.storagepool.tooltip": "Destination Storage Pool. Volume should be located in this Storage Pool",
"label.storagetags": "Storage tags",
"label.storagetype": "Storage type",
"label.storageip": "Storage IP address",
"label.strict": "Strict",
"label.subdomainaccess": "Subdomain access",
"label.submit": "Submit",
Expand Down
1 change: 1 addition & 0 deletions ui/public/locales/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,7 @@
"label.storagepool": "Pool de armazenamento",
"label.storagetags": "Tags de armazenamento",
"label.storagetype": "Tipo de armazenamento",
"label.storageip": "Endere\u00e7o IP na rede de armazenamento",
"label.strict": "Rigoroso",
"label.subdomainaccess": "acesso ao subdom\u00ednio",
"label.submit": "Enviar",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/config/section/infra/systemVms.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
permission: ['listSystemVms'],
searchFilters: ['name', 'zoneid', 'podid', 'hostid', 'systemvmtype', 'storageid', 'arch'],
columns: ['name', 'state', 'agentstate', 'systemvmtype', 'publicip', 'privateip', 'linklocalip', 'version', 'hostname', 'arch', 'zonename'],
details: ['name', 'id', 'agentstate', 'systemvmtype', 'publicip', 'privateip', 'linklocalip', 'gateway', 'hostname', 'arch', 'version', 'zonename', 'created', 'activeviewersessions', 'isdynamicallyscalable', 'hostcontrolstate'],
details: ['name', 'id', 'agentstate', 'systemvmtype', 'publicip', 'privateip', 'linklocalip', 'gateway', 'hostname', 'arch', 'version', 'zonename', 'created', 'activeviewersessions', 'isdynamicallyscalable', 'hostcontrolstate', 'storageip'],
resourceType: 'SystemVm',
filters: () => {
const filters = ['starting', 'running', 'stopping', 'stopped', 'destroyed', 'expunging', 'migrating', 'error', 'unknown', 'shutdown']
Expand Down
Loading