|
285 | 285 | </a-form-item> |
286 | 286 | <a-form-item name="ontapPassword" ref="ontapPassword"> |
287 | 287 | <template #label> |
288 | | - <tooltip-label :title="$t('label.password')" :tooltip="$t('label.ontap.password')"/> |
| 288 | + <tooltip-label :title="$t('label.password')" :tooltip="$t('label.ontap.password.tooltip')"/> |
289 | 289 | </template> |
290 | | - <a-input-password v-model:value="form.ontapPassword" :placeholder="$t('label.ontap.password')"/> |
| 290 | + <a-input-password v-model:value="form.ontapPassword" :placeholder="$t('label.ontap.password.tooltip')"/> |
291 | 291 | </a-form-item> |
292 | 292 | <a-form-item name="ontapSvmName" ref="ontapSvmName"> |
293 | 293 | <template #label> |
294 | | - <tooltip-label :title="$t('label.ontap.svm.name')" :tooltip="$t('label.ontap.svm.name')"/> |
| 294 | + <tooltip-label :title="$t('label.ontap.svm.name')" :tooltip="$t('label.ontap.svm.name.tooltip')"/> |
295 | 295 | </template> |
296 | | - <a-input v-model:value="form.ontapSvmName" :placeholder="$t('label.ontap.svm.name')"/> |
| 296 | + <a-input v-model:value="form.ontapSvmName" :placeholder="$t('label.ontap.svm.name.tooltip')"/> |
297 | 297 | </a-form-item> |
298 | 298 | <a-form-item name="capacityBytes" ref="capacityBytes"> |
299 | 299 | <template #label> |
@@ -548,7 +548,11 @@ export default { |
548 | 548 | primeraPassword: [{ required: true, message: this.$t('label.password') }], |
549 | 549 | flashArrayURL: [{ required: true, message: this.$t('label.url') }], |
550 | 550 | flashArrayUsername: [{ required: true, message: this.$t('label.username') }], |
551 | | - flashArrayPassword: [{ required: true, message: this.$t('label.password') }] |
| 551 | + flashArrayPassword: [{ required: true, message: this.$t('label.password') }], |
| 552 | + ontapIP: [{ required: true, message: this.$t('label.required') }], |
| 553 | + ontapUsername: [{ required: true, message: this.$t('label.required') }], |
| 554 | + ontapPassword: [{ required: true, message: this.$t('label.required') }], |
| 555 | + ontapSvmName: [{ required: true, message: this.$t('label.required') }], |
552 | 556 | }) |
553 | 557 | }, |
554 | 558 | fetchData () { |
@@ -807,7 +811,7 @@ export default { |
807 | 811 | this.protocols = ['FiberChannel'] |
808 | 812 | this.form.protocol = 'FiberChannel' |
809 | 813 | } else if (value === 'ONTAP') { |
810 | | - this.protocols = ['NFS3', 'iSCSI'] |
| 814 | + this.protocols = ['NFS3', 'ISCSI'] |
811 | 815 | this.form.protocol = 'NFS3' |
812 | 816 | } else { |
813 | 817 | this.fetchHypervisor(value) |
@@ -932,11 +936,11 @@ export default { |
932 | 936 | params['details[0].api_password'] = values.flashArrayPassword |
933 | 937 | url = values.flashArrayURL |
934 | 938 | } else if (values.provider === 'ONTAP') { |
935 | | - params['details[0].ontap_ip'] = values.ontapIP |
936 | | - params['details[0].ontap_username'] = values.ontapUsername |
937 | | - params['details[0].ontap_password'] = values.ontapPassword |
938 | | - params['details[0].ontap_svmName'] = values.ontapSvmName |
939 | | - params['details[0].ontap_protocol'] = values.protocol |
| 939 | + params['details[0].storage_ip'] = values.ontapIP |
| 940 | + params['details[0].username'] = values.ontapUsername |
| 941 | + params['details[0].password'] = values.ontapPassword |
| 942 | + params['details[0].svmName'] = values.ontapSvmName |
| 943 | + params['details[0].protocol'] = values.protocol |
940 | 944 | values.managed = true |
941 | 945 | url = this.ontapURL(values.ontapIP) |
942 | 946 | } |
|
0 commit comments