Skip to content

Commit 910d024

Browse files
ui: recommend adv zone to new users and show basic zone as bottom option (apache#5496)
* ui: recommend adv zone to new users and show basic zone as bottom option This shows the adv zone option in the create zone wizard before the basic zone option and recommends it for new users. This is because adv zone can offer more flexible and network topology options including what basic zone offers in form of shared network (with/without security groups). Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * let's see if this ticks advanced by default Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 9f7a350 commit 910d024

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@
27972797
"message.deleting.vm": "Deleting VM",
27982798
"message.deployasis": "Selected template is Deploy As-Is i.e., the VM is deployed by importing an OVA with vApps directly into vCenter. Root disk(s) resize is allowed only on stopped VMs for such templates.",
27992799
"message.desc.add.new.lb.sticky.rule": "Add new LB sticky rule",
2800-
"message.desc.advanced.zone": "For more sophisticated network topologies. This network model provides the most flexibility in defining guest networks and providing custom network offerings such as firewall, VPN, or load balancer support.",
2800+
"message.desc.advanced.zone": "This is recommended and allows more sophisticated network topologies. This network model provides the most flexibility in defining guest networks and providing custom network offerings such as firewall, VPN, or load balancer support.",
28012801
"message.desc.basic.zone": "Provide a single network where each VM instance is assigned an IP directly from the network. Guest isolation can be provided through layer-3 means such as security groups (IP address source filtering).",
28022802
"message.desc.cluster": "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.",
28032803
"message.desc.create.ssh.key.pair": "Please fill in the following data to create or register a ssh key pair.<br><br>(1) If public key is set, CloudStack will register the public key. You can use it through your private key.<br><br>(2) If public key is not set, CloudStack will create a new SSH Key pair. In this case, please copy and save the private key. CloudStack will not keep it.<br>",

ui/src/views/infra/zone/ZoneWizardZoneTypeStep.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131
initialValue: zoneType
3232
}]
3333
}]">
34-
<a-card :gutter="12" class="card-item" v-if="$config.basicZoneEnabled">
35-
<a-col :md="6" :lg="6">
36-
<a-radio class="card-form-item" value="Basic">{{ $t('label.basic') }}</a-radio>
37-
</a-col>
38-
<a-col :md="18" :lg="18">
39-
<a-card class="ant-form-text zone-support">{{ $t(zoneDescription.Basic) }}</a-card>
40-
</a-col>
41-
</a-card>
4234
<a-card :gutter="12" class="card-item">
4335
<a-col :md="6" :lg="6">
4436
<a-radio class="card-form-item" value="Advanced" v-if="$config.basicZoneEnabled">{{ $t('label.advanced') }}</a-radio>
@@ -68,6 +60,14 @@
6860
<a-card class="zone-support">{{ $t(zoneDescription.SecurityGroups) }}</a-card>
6961
</a-col>
7062
</a-card>
63+
<a-card :gutter="12" class="card-item" v-if="$config.basicZoneEnabled">
64+
<a-col :md="6" :lg="6">
65+
<a-radio class="card-form-item" value="Basic">{{ $t('label.basic') }}</a-radio>
66+
</a-col>
67+
<a-col :md="18" :lg="18">
68+
<a-card class="ant-form-text zone-support">{{ $t(zoneDescription.Basic) }}</a-card>
69+
</a-col>
70+
</a-card>
7171
</a-radio-group>
7272
</a-form-item>
7373
</a-form>
@@ -118,7 +118,7 @@ export default {
118118
return this.zoneType === 'Advanced'
119119
},
120120
zoneType () {
121-
return this.prefillContent.zoneType ? this.prefillContent.zoneType.value : (this.$config.basicZoneEnabled ? 'Basic' : 'Advanced')
121+
return this.prefillContent.zoneType ? this.prefillContent.zoneType.value : 'Advanced'
122122
},
123123
securityGroupsEnabled () {
124124
return this.isAdvancedZone && (this.prefillContent.securityGroupsEnabled ? this.prefillContent.securityGroupsEnabled.value : false)

0 commit comments

Comments
 (0)