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 2021/01/14 00:38:48 UTC
[cloudstack-primate] 01/01: Revert "Allow enabling network/vpc
offering at creation (#911)"
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch revert-911-default-enable-nwoff
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
commit 77a9e8ad6c73bb62e6891b7a62138413e58e286d
Author: Rohit Yadav <ro...@apache.org>
AuthorDate: Thu Jan 14 06:08:38 2021 +0530
Revert "Allow enabling network/vpc offering at creation (#911)"
This reverts commit c8edbc36f086f8a3882357e3aafe9be2b87f2eb7.
---
src/views/offering/AddNetworkOffering.vue | 12 ------------
src/views/offering/AddVpcOffering.vue | 12 ------------
2 files changed, 24 deletions(-)
diff --git a/src/views/offering/AddNetworkOffering.vue b/src/views/offering/AddNetworkOffering.vue
index c163f5a..ce571e1 100644
--- a/src/views/offering/AddNetworkOffering.vue
+++ b/src/views/offering/AddNetworkOffering.vue
@@ -447,15 +447,6 @@
</a-select-option>
</a-select>
</a-form-item>
- <a-form-item>
- <span slot="label">
- {{ $t('label.enable.network.offering') }}
- <a-tooltip :title="apiParams.enable.description">
- <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
- </a-tooltip>
- </span>
- <a-switch v-decorator="['enable', {initialValue: false}]" />
- </a-form-item>
</a-form>
<div :span="24" class="action-button">
<a-button @click="closeAction">{{ this.$t('label.cancel') }}</a-button>
@@ -938,9 +929,6 @@ export default {
if (zoneId) {
params.zoneid = zoneId
}
- if (values.enable) {
- params.enable = values.enable
- }
params.traffictype = 'GUEST' // traffic type dropdown has been removed since it has only one option ('Guest'). Hardcode traffic type value here.
api('createNetworkOffering', params).then(json => {
this.$message.success('Network offering created: ' + values.name)
diff --git a/src/views/offering/AddVpcOffering.vue b/src/views/offering/AddVpcOffering.vue
index 15faab8..082c0e3 100644
--- a/src/views/offering/AddVpcOffering.vue
+++ b/src/views/offering/AddVpcOffering.vue
@@ -145,15 +145,6 @@
</a-select-option>
</a-select>
</a-form-item>
- <a-form-item>
- <span slot="label">
- {{ $t('label.enable.vpc.offering') }}
- <a-tooltip :title="apiParams.enable.description">
- <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
- </a-tooltip>
- </span>
- <a-switch v-decorator="['enable', {initialValue: false}]" />
- </a-form-item>
</a-form>
<div :span="24" class="action-button">
<a-button @click="closeAction">{{ this.$t('label.cancel') }}</a-button>
@@ -409,9 +400,6 @@ export default {
} else {
params.supportedservices = ''
}
- if (values.enable) {
- params.enable = values.enable
- }
api('createVPCOffering', params).then(json => {
this.$message.success(`${this.$t('message.create.vpc.offering')}: ` + values.name)
this.$emit('refresh-data')