From 5097d2aa8bd8f1c360b6202df1b5ffa531740316 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Tue, 22 Aug 2023 11:15:30 +0200 Subject: [PATCH] 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 {