This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 5097d2aa8bd ui: fix creating zone with vxlan if Guest physical network 
is not the last (#7801)
5097d2aa8bd is described below

commit 5097d2aa8bd8f1c360b6202df1b5ffa531740316
Author: Wei Zhou <[email protected]>
AuthorDate: Tue Aug 22 11:15:30 2023 +0200

    ui: fix creating zone with vxlan if Guest physical network is not the last 
(#7801)
    
    This fixes #7790
---
 ui/src/views/infra/zone/ZoneWizardLaunchZone.vue | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue 
b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue
index bf43e4bd5c4..ce8769801cf 100644
--- a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue
+++ b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue
@@ -483,6 +483,9 @@ export default {
             } else {
               this.stepData.physicalNetworkReturned = 
this.stepData.physicalNetworkItem['createPhysicalNetwork' + index]
             }
+            if (physicalNetwork.traffics.findIndex(traffic => traffic.type === 
'guest') > -1) {
+              this.stepData.guestPhysicalNetworkId = physicalNetworkReturned.id
+            }
           } catch (e) {
             this.messageError = e
             this.processStatus = STATUS_FAILED
@@ -1181,7 +1184,7 @@ export default {
             }
 
             const updateParams = {}
-            updateParams.id = this.stepData.physicalNetworkReturned.id
+            updateParams.id = this.stepData.guestPhysicalNetworkId
             updateParams.vlan = vlan
 
             try {

Reply via email to