Skip to content

Commit 27e6b65

Browse files
author
SadiJr
committed
Merge branch '2574-ip-SSVM-rede-storage' into '4.20.0.0-scclouds'
Adição de informação do endereço IP da SSVM na rede de _storage_ Closes apache#2574 See merge request scclouds/scclouds!1182
2 parents 0b5b231 + c1431bd commit 27e6b65

5 files changed

Lines changed: 17 additions & 1 deletion

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ public class SystemVmResponse extends BaseResponseWithAnnotations {
134134
@Param(description = "the public netmask for the system VM")
135135
private String publicNetmask;
136136

137+
@SerializedName("storagenetworkip")
138+
@Param(description = "the ip for the system VM on the storage network")
139+
private String storageNetworkIp;
140+
137141
@SerializedName("templateid")
138142
@Param(description = "the template ID for the system VM")
139143
private String templateId;
@@ -359,6 +363,14 @@ public void setPublicNetmask(String publicNetmask) {
359363
this.publicNetmask = publicNetmask;
360364
}
361365

366+
public String getStorageNetworkIp() {
367+
return storageNetworkIp;
368+
}
369+
370+
public void setStorageNetworkIp(String storageNetworkIp) {
371+
this.storageNetworkIp = storageNetworkIp;
372+
}
373+
362374
public String getTemplateId() {
363375
return templateId;
364376
}

server/src/main/java/com/cloud/api/ApiResponseHelper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,8 @@ public SystemVmResponse createSystemVmResponse(VirtualMachine vm) {
18551855
vmResponse.setPublicNetmask(singleNicProfile.getIPv4Netmask());
18561856
vmResponse.setGateway(singleNicProfile.getIPv4Gateway());
18571857
}
1858+
} else if (network.getTrafficType() == TrafficType.Storage) {
1859+
vmResponse.setStorageNetworkIp(singleNicProfile.getIPv4Address());
18581860
}
18591861
}
18601862
}

ui/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,6 +2260,7 @@
22602260
"label.storagepool.tooltip": "Destination Storage Pool. Volume should be located in this Storage Pool",
22612261
"label.storagetags": "Storage tags",
22622262
"label.storagetype": "Storage type",
2263+
"label.storagenetworkip": "Storage network IP",
22632264
"label.strict": "Strict",
22642265
"label.subdomainaccess": "Subdomain access",
22652266
"label.submit": "Submit",

ui/public/locales/pt_BR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,7 @@
16511651
"label.storagepool": "Pool de armazenamento",
16521652
"label.storagetags": "Tags de armazenamento",
16531653
"label.storagetype": "Tipo de armazenamento",
1654+
"label.storagenetworkip": "IP na rede de storage",
16541655
"label.strict": "Rigoroso",
16551656
"label.subdomainaccess": "acesso ao subdom\u00ednio",
16561657
"label.submit": "Enviar",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
permission: ['listSystemVms'],
2727
searchFilters: ['name', 'zoneid', 'podid', 'hostid', 'systemvmtype', 'storageid'],
2828
columns: ['name', 'state', 'agentstate', 'systemvmtype', 'publicip', 'privateip', 'linklocalip', 'version', 'hostname', 'zonename'],
29-
details: ['name', 'id', 'agentstate', 'systemvmtype', 'publicip', 'privateip', 'linklocalip', 'gateway', 'hostname', 'version', 'zonename', 'created', 'activeviewersessions', 'isdynamicallyscalable', 'hostcontrolstate'],
29+
details: ['name', 'id', 'agentstate', 'systemvmtype', 'publicip', 'privateip', 'linklocalip', 'gateway', 'hostname', 'version', 'zonename', 'created', 'activeviewersessions', 'isdynamicallyscalable', 'hostcontrolstate', 'storagenetworkip'],
3030
resourceType: 'SystemVm',
3131
filters: () => {
3232
const filters = ['starting', 'running', 'stopping', 'stopped', 'destroyed', 'expunging', 'migrating', 'error', 'unknown', 'shutdown']

0 commit comments

Comments
 (0)