Skip to content

Commit 8ade439

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-98 UI Changes
1 parent 1ae738b commit 8ade439

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/provider/OntapPrimaryDatastoreProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public HypervisorHostListener getHostListener() {
6565
@Override
6666
public String getName() {
6767
s_logger.trace("OntapPrimaryDatastoreProvider: getName: Called");
68-
return "ONTAP Primary Datastore Provider";
68+
return "ONTAP";
6969
}
7070

7171
@Override

ui/src/views/infra/AddPrimaryStorage.vue

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
</a-select>
243243
</a-form-item>
244244
</div>
245-
<div v-if="form.provider !== 'DefaultPrimary' && form.provider !== 'PowerFlex' && form.provider !== 'Linstor' && form.protocol !== 'FiberChannel'">
245+
<div v-if="form.provider !== 'DefaultPrimary' && form.provider !== 'PowerFlex' && form.provider !== 'Linstor' && form.provider !== 'ONTAP' && form.protocol !== 'FiberChannel'">
246246
<a-form-item name="managed" ref="managed">
247247
<template #label>
248248
<tooltip-label :title="$t('label.ismanaged')" :tooltip="apiParams.managed.description"/>
@@ -270,6 +270,38 @@
270270
<a-input v-model:value="form.url" :placeholder="apiParams.url.description" />
271271
</a-form-item>
272272
</div>
273+
<div v-if="form.provider === 'ONTAP'">
274+
<a-form-item name="ontapIP" ref="ontapIP">
275+
<template #label>
276+
<tooltip-label :title="$t('label.ontap.ip')" :tooltip="$t('label.ontap.ip.tooltip')"/>
277+
</template>
278+
<a-input v-model:value="form.ontapIP" :placeholder="$t('label.netapp.url.tooltip')"/>
279+
</a-form-item>
280+
<a-form-item name="ontapUsername" ref="ontapUsername">
281+
<template #label>
282+
<tooltip-label :title="$t('label.username')" :tooltip="$t('label.ontap.username.tooltip')"/>
283+
</template>
284+
<a-input v-model:value="form.ontapUsername" :placeholder="$t('label.ontap.username.tooltip')"/>
285+
</a-form-item>
286+
<a-form-item name="ontapPassword" ref="ontapPassword">
287+
<template #label>
288+
<tooltip-label :title="$t('label.password')" :tooltip="$t('label.ontap.password')"/>
289+
</template>
290+
<a-input-password v-model:value="form.ontapPassword" :placeholder="$t('label.ontap.password')"/>
291+
</a-form-item>
292+
<a-form-item name="ontapSvmName" ref="ontapSvmName">
293+
<template #label>
294+
<tooltip-label :title="$t('label.ontap.svm.name')" :tooltip="$t('label.ontap.svm.name')"/>
295+
</template>
296+
<a-input-password v-model:value="form.ontapSvmName" :placeholder="$t('label.ontap.svm.name')"/>
297+
</a-form-item>
298+
<a-form-item name="capacityBytes" ref="capacityBytes">
299+
<template #label>
300+
<tooltip-label :title="$t('label.capacitybytes')" :tooltip="apiParams.capacitybytes.description"/>
301+
</template>
302+
<a-input v-model:value="form.capacityBytes" :placeholder="apiParams.capacitybytes.description" />
303+
</a-form-item>
304+
</div>
273305
<div v-if="form.provider === 'PowerFlex'">
274306
<a-form-item name="powerflexGateway" ref="powerflexGateway">
275307
<template #label>
@@ -768,6 +800,9 @@ export default {
768800
} else if (value === 'Flash Array' || value === 'Primera') {
769801
this.protocols = ['FiberChannel']
770802
this.form.protocol = 'FiberChannel'
803+
} else if (value === 'Flash Array' || value === 'Primera') {
804+
this.protocols = ['NFSv3', 'ISCSI']
805+
this.form.protocol = 'NFSv3'
771806
} else {
772807
this.fetchHypervisor(value)
773808
}

0 commit comments

Comments
 (0)