Skip to content

Commit 13aab99

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-98 Make changes for url field
1 parent 094de8f commit 13aab99

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ui/src/views/infra/AddPrimaryStorage.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,12 @@ export default {
793793
gateway + '/' + encodeURIComponent(pool)
794794
return url
795795
},
796+
797+
ontapURL (ontapIp) {
798+
var url = 'https://' + ontapIp
799+
return url
800+
},
801+
796802
updateProviderAndProtocol (value) {
797803
if (value === 'PowerFlex') {
798804
this.protocols = ['custom']
@@ -959,6 +965,10 @@ export default {
959965
values.powerflexGatewayPassword, values.powerflexStoragePool)
960966
}
961967
968+
if (values.provider === 'ONTAP') {
969+
params.url = this.ontapURL(values.ontapIP)
970+
}
971+
962972
if (this.selectedTags.length > 0) {
963973
params.tags = this.selectedTags.join()
964974
}

0 commit comments

Comments
 (0)