You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/11/25 18:31:34 UTC

[GitHub] [cloudstack-primate] GabrielBrascher commented on a change in pull request #1: [WIP] Zone wizard steps

GabrielBrascher commented on a change in pull request #1: [WIP] Zone wizard steps
URL: https://github.com/apache/cloudstack-primate/pull/1#discussion_r345568850
 
 

 ##########
 File path: src/views/infra/zone/AddResourcesWizard.vue
 ##########
 @@ -0,0 +1,192 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+<template>
+  <div style="width: auto;">
+    <a-steps progressDot :current="currentStep" size="small" style="margin-left: 0px; margin-top: 16px;">
+      <a-step v-for="step in steps" :key="step.title" :title="step.title" :style="'width:' + 100 / steps.length + '%;'"/>
+    </a-steps>
+    <static-inputs-form
+      v-if="currentStep === 0"
+      @nextPressed="nextPressed"
+      @backPressed="handleBack"
+      @fieldsChanged="fieldsChanged"
+      :fields="clusterFields"
+      :prefillContent="prefillContent"
+      :description="steps[currentStep].description"
+    />
+
+    <static-inputs-form
+      v-if="currentStep === 1"
+      @nextPressed="nextPressed"
+      @backPressed="handleBack"
+      @fieldsChanged="fieldsChanged"
+      :fields="hostFields"
+      :prefillContent="prefillContent"
+      :description="steps[currentStep].description"
+    />
+
+    <static-inputs-form
+      v-if="currentStep === 2"
+      @nextPressed="nextPressed"
+      @backPressed="handleBack"
+      @fieldsChanged="fieldsChanged"
+      :fields="primaryStorageFields"
+      :prefillContent="prefillContent"
+      :description="steps[currentStep].description"
+    />
+  </div>
+</template>
+<script>
+import StaticInputsForm from '@views/infra/zone/StaticInputsForm'
+
+export default {
+  components: {
+    StaticInputsForm
+  },
+  props: {
+    prefillContent: {
+      type: Object,
+      default: function () {
+        return {}
+      }
+    }
+  },
+  computed: {
+    zoneType () {
+      return this.prefillContent.zoneType ? this.prefillContent.zoneType.value : null
+    }
+  },
+  data () {
+    return {
+      physicalNetworks: null,
+      currentStep: 0,
+      steps: [
+        {
+          title: 'Cluster',
+          description: 'Each pod must contain one or more clusters, and we will add the first cluster now. A cluster provides a way to group hosts. The hosts in a cluster all have identical hardware, run the same hypervisor, are on the same subnet, and access the same shared storage. Each cluster consists of one or more hosts and one or more primary storage servers.'
+        },
+        {
+          title: 'Host',
+          description: 'Each cluster must contain at least one host (computer) for guest VMs to run on, and we will add the first host now. For a host to function in CloudStack, you must install hypervisor software on the host, assign an IP address to the host, and ensure the host is connected to the CloudStack management server. Give the hosts DNS or IP address, the user name (usually root) and password, and any labels you use to categorize hosts.'
+        },
+        {
+          title: 'Primary Storage',
+          description: 'Each cluster must contain one or more primary storage servers, and we will add the first one now. Primary storage contains the disk volumes for all the VMs running on hosts in the cluster. Use any standards-compliant protocol that is supported by the underlying hypervisor.'
+        }
+        // {
+        //   title: 'Secondary Storage',
 
 Review comment:
   I understand that this is a WIP, thus I know that few pieces will be added/removed. Please ignore this comment if those lines are necessary and will be removed or uncommented on the future; otherwise, please removed those commented lines.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services