From 8fac91760217d80a9c25b7d16c598c474ea457dd Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 14 Jun 2023 13:53:32 +0530 Subject: [PATCH] ui: fix vm import for L2 n/w in Setup state L2 networks created using offerings that allow using custom VLAN can remain in Setup state. Allow importing of VMs with such networks when VLAN matches with unmanaged instance. Signed-off-by: Abhishek Kumar --- ui/src/views/compute/wizard/MultiNetworkSelection.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/compute/wizard/MultiNetworkSelection.vue b/ui/src/views/compute/wizard/MultiNetworkSelection.vue index 227ea34eb148..bdbd23edec1c 100644 --- a/ui/src/views/compute/wizard/MultiNetworkSelection.vue +++ b/ui/src/views/compute/wizard/MultiNetworkSelection.vue @@ -193,7 +193,7 @@ export default { for (const item of this.items) { this.validNetworks[item.id] = this.networks if (this.filterUnimplementedNetworks) { - this.validNetworks[item.id] = this.validNetworks[item.id].filter(x => (x.state === 'Implemented' || (x.state === 'Setup' && x.type === 'Shared'))) + this.validNetworks[item.id] = this.validNetworks[item.id].filter(x => (x.state === 'Implemented' || (x.state === 'Setup' && ['Shared', 'L2'].includes(x.type)))) } if (this.filterMatchKey) { this.validNetworks[item.id] = this.validNetworks[item.id].filter(x => x[this.filterMatchKey] === item[this.filterMatchKey])