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/06/05 10:58:05 UTC

[cloudstack-primate] branch master updated: zone: allow configuring IPv6 default guest network when adding a new Zone (#343)

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 4290038   zone: allow configuring IPv6 default guest network when adding a new Zone (#343)
4290038 is described below

commit 42900381a2233c5fd857e71a51c13b82adecf4ec
Author: Gabriel Beims Bräscher <ga...@gmail.com>
AuthorDate: Fri Jun 5 07:57:57 2020 -0300

     zone: allow configuring IPv6 default guest network when adding a new Zone (#343)
    
    Advanced Network with Security Groups is a great option for deploying a Zone with IPv6 address support. However, it is not possible to set IPv6 DNS + IPv6 CIDR + IPv6 gateway via the zoneWizard UI.
    
    This PR adds a small enhancement on the UI Zone deployment to allow deploying a Zone with Advanced Network with Security Groups + IPv6 CIDR, IPv6 gateway, and IPv6 DNS.
    
    Note that API [1] offers full support for such action, therefore there is no need for changing the API. It is just a small enhancement on UI that might be useful in the meantime that we wait for the new ACS UI.
    
    [1] https://cloudstack.apache.org/api/apidocs-4.13/apis/createNetwork.html
---
 src/views/infra/zone/ZoneWizardZoneDetailsStep.vue | 41 ++++++++++++++++++++--
 1 file changed, 39 insertions(+), 2 deletions(-)

diff --git a/src/views/infra/zone/ZoneWizardZoneDetailsStep.vue b/src/views/infra/zone/ZoneWizardZoneDetailsStep.vue
index 440ec46..5baf1c0 100644
--- a/src/views/infra/zone/ZoneWizardZoneDetailsStep.vue
+++ b/src/views/infra/zone/ZoneWizardZoneDetailsStep.vue
@@ -81,7 +81,7 @@
       <a-form-item
         :label="$t('label.ipv6.dns1')"
         v-bind="formItemLayout"
-        v-if="isAdvancedZone && !securityGroupsEnabled"
+        v-if="isAdvancedZone"
         has-feedback>
         <a-input
           v-decorator="['ipv6Dns1', {
@@ -102,7 +102,7 @@
       <a-form-item
         :label="$t('label.ipv6.dns2')"
         v-bind="formItemLayout"
-        v-if="isAdvancedZone && !securityGroupsEnabled"
+        v-if="isAdvancedZone"
         has-feedback>
         <a-input
           v-decorator="['ipv6Dns2', {
@@ -121,6 +121,43 @@
         />
       </a-form-item>
       <a-form-item
+        :label="$t('label.ip6cidr')"
+        v-bind="formItemLayout"
+        v-if="isAdvancedZone && securityGroupsEnabled"
+        has-feedback>
+        <a-input
+          v-decorator="['ipv6Cidr', {
+            rules: [
+              {
+                message: 'Please enter IpV6 CIDR',
+                initialValue: ip6cidr
+              }
+            ]
+          }]"
+        />
+      </a-form-item>
+            <a-form-item
+              :label="$t('label.ip6gateway')"
+              v-bind="formItemLayout"
+              v-if="isAdvancedZone && securityGroupsEnabled"
+              has-feedback>
+              <a-input
+                v-decorator="['ip6gateway', {
+                  rules: [
+                    {
+                      message: 'Please enter IpV6 Gateway',
+                      initialValue: ip6gateway
+                    },
+                    {
+                      validator: checkIpFormat,
+                      ipV6: true,
+                      message: 'Please enter a valid IPv6 Gatweay.'
+                    }
+                  ]
+                }]"
+              />
+            </a-form-item>
+      <a-form-item
         :label="$t('label.internal.dns.1')"
         v-bind="formItemLayout"
         has-feedback>