|
1233 | 1233 | if(selectedHypervisorObj == null) { |
1234 | 1234 | return; |
1235 | 1235 | } |
1236 | | - |
1237 | | - // ZWPS is supported only for KVM as the hypervisor |
1238 | | - if(selectedHypervisorObj.hypervisortype != "KVM"){ |
1239 | | - var scope=[]; |
1240 | | - scope.push({ id: 'cluster', description: _l('label.cluster') }); |
1241 | | - //scope.push({ id: 'host', description: _l('label.host') }); |
1242 | | - args.response.success({data: scope}); |
1243 | | - } |
1244 | | - |
1245 | | - else { |
1246 | | - var scope=[]; |
1247 | | - scope.push({ id: 'zone', description: _l('label.zone.wide') }); |
1248 | | - scope.push({ id: 'cluster', description: _l('label.cluster') }); |
1249 | | - // scope.push({ id: 'host', description: _l('label.host') }); |
1250 | | - args.response.success({data: scope}); |
1251 | | - } |
1252 | | - |
1253 | | - } |
1254 | | - |
1255 | | - }, |
| 1236 | + |
| 1237 | + //zone-wide-primary-storage is supported only for KVM and VMWare |
| 1238 | + if(selectedHypervisorObj.hypervisortype == "KVM" || selectedHypervisorObj.hypervisortype == "VMware"){ |
| 1239 | + var scope=[]; |
| 1240 | + scope.push({ id: 'zone', description: _l('label.zone.wide') }); |
| 1241 | + scope.push({ id: 'cluster', description: _l('label.cluster') }); |
| 1242 | + args.response.success({data: scope}); |
| 1243 | + } |
| 1244 | + else { |
| 1245 | + var scope=[]; |
| 1246 | + scope.push({ id: 'cluster', description: _l('label.cluster') }); |
| 1247 | + args.response.success({data: scope}); |
| 1248 | + } |
| 1249 | + } |
| 1250 | + }, |
1256 | 1251 |
|
1257 | 1252 | protocol: { |
1258 | 1253 | label: 'label.protocol', |
|
3514 | 3509 | array1.push("&name=" + todb(args.data.primaryStorage.name)); |
3515 | 3510 | array1.push("&scope=" + todb(args.data.primaryStorage.scope)); |
3516 | 3511 |
|
| 3512 | + //zone-wide-primary-storage is supported only for KVM and VMWare |
| 3513 | + if(args.data.primaryStorage.scope == "zone") { |
| 3514 | + array1.push("&hypervisor=" + todb(args.data.returnedCluster.hypervisortype)); //hypervisor type of the hosts in zone that will be attached to this storage pool. KVM, VMware supported as of now. |
| 3515 | + } |
| 3516 | + |
3517 | 3517 | var server = args.data.primaryStorage.server; |
3518 | 3518 | var url = null; |
3519 | 3519 | if (args.data.primaryStorage.protocol == "nfs") { |
|
0 commit comments