From c5a9b46ad6645cd4f429e3786f74f6f5a25f64c6 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 2 Aug 2023 02:58:53 +0200 Subject: [PATCH] UI: fix creating zone with vxlan if Guest physical network is not the last 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 bf43e4bd5c45..ce8769801cf9 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 {