You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/10/01 10:33:40 UTC
[cloudstack-primate] branch master updated: Add rootdisk size on
compute offering (#770)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push:
new 0ef66c6 Add rootdisk size on compute offering (#770)
0ef66c6 is described below
commit 0ef66c6db2ce3bce1198373b2cc5cee5b5c9feaa
Author: Gabriel Beims Bräscher <ga...@apache.org>
AuthorDate: Thu Oct 1 07:33:29 2020 -0300
Add rootdisk size on compute offering (#770)
* Add rootdisk size oncompute offering
* Change "leftover" apiParams.provisioningtype to apiParams.rootdisk
---
src/views/offering/AddComputeOffering.vue | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/src/views/offering/AddComputeOffering.vue b/src/views/offering/AddComputeOffering.vue
index 02de4c0..559a825 100644
--- a/src/views/offering/AddComputeOffering.vue
+++ b/src/views/offering/AddComputeOffering.vue
@@ -333,6 +333,28 @@
}]"
:placeholder="this.$t('label.networkrate')"/>
</a-form-item>
+ <a-form-item v-if="apiParams.rootdisksize">
+ <span slot="label">
+ {{ $t('label.root.disk.size') }}
+ <a-tooltip :title="apiParams.rootdisksize.description">
+ <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
+ </a-tooltip>
+ </span>
+ <a-input
+ v-decorator="['rootdisksize', {
+ rules: [
+ {
+ validator: (rule, value, callback) => {
+ if (value && (isNaN(value) || value <= 0)) {
+ callback(this.$t('message.error.number'))
+ }
+ callback()
+ }
+ }
+ ]
+ }]"
+ :placeholder="this.$t('label.root.disk.size')"/>
+ </a-form-item>
<a-form-item :label="$t('label.qostype')">
<a-radio-group
v-decorator="['qostype', {
@@ -964,6 +986,9 @@ export default {
if (values.networkrate != null && values.networkrate.length > 0) {
params.networkrate = values.networkrate
}
+ if (values.rootdisksize != null && values.rootdisksize.length > 0) {
+ params.rootdisksize = values.rootdisksize
+ }
if (values.qostype === 'storage') {
var customIops = values.iscustomizeddiskiops === true
params.customizediops = customIops