(Do not rely on this estimated cost. It is just an estimation using spec price.) ";
+
+
var hasUserConfirmed = false;
Swal.fire({
- title: "Please change the name of MCIS to create if you wish",
+ title: "Enter the name of the MCIS you wish to create",
input: "text",
inputAttributes: {
autocapitalize: "off",
@@ -1063,12 +1096,14 @@ function createMcis() {
createMcisReq.name = result.value;
Swal.fire({
- title: "Are you sure to create MCIS as follows:",
- width: 600,
+ title: "Are you sure you want to create this MCIS?",
+ width: 750,
html:
- "" +
- "MCIS name: " +
- createMcisReq.name +
+ "" +
+ " " + createMcisReq.name +" ("+totalNodeScale+" node(s))" + " "+
+ "" +
+ costDetailsHtml +
+ "" +
subGroupReqString +
"
Hold VM provisioning of the MCIS"+
" Deploy CB-Dragonfly monitoring agent",
@@ -1256,8 +1291,9 @@ function getRecommendedSpec(idx, latitude, longitude) {
// }
var createMcisReqVm = $.extend({}, createMcisReqVmTmplt);
+ var recommendedSpec = res.data[0];
- createMcisReqVm.name = "g" + (recommendedSpecList.length + 1).toString();
+ createMcisReqVm.name = "g" + (vmReqeustFromSpecList.length + 1).toString();
osImage = document.getElementById("osImage");
diskSize = document.getElementById("diskSize");
@@ -1276,44 +1312,48 @@ function getRecommendedSpec(idx, latitude, longitude) {
// need to validate requested disk size >= default disk size given by vm spec
}
+ let costPerHour = res.data[0].costPerHour;
+ if (costPerHour == "100000000" || costPerHour == "") {
+ costPerHour = "unknown";
+ }
+ let acceleratorType = res.data[0].acceleratorType;
+ let acceleratorModel = res.data[0].acceleratorModel;
+ if (acceleratorType == "gpu" ) {
+ acceleratorType = "
AcceleratorType
GPU
"
+ acceleratorModel = "
AcceleratorModel
" + acceleratorModel + "
"
+ } else {
+ acceleratorType = "
AcceleratorType
None
"
+ acceleratorModel = "
AcceleratorModel
" + acceleratorModel + "
"
+ }
+
Swal.fire({
- title: "Please provide the number of VMs to create (1 ~ 10)",
- width: 600,
+ title: "Recommended Spec and CSP region (select the number for scaling VMs (1 ~ 10))",
+ width: 700,
html:
- "" +
- "Recommended VM Spec " +
- res.data[0].cspSpecName +
- " OS Image Type: " +
- createMcisReqVm.commonImage +
-
- "