From 83dca2bf51895332f56041a576ed29d5f9ccead5 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 27 Jun 2023 14:57:42 +0530 Subject: [PATCH] ui: fix vm import for L2 n/w in Setup state (#7628) 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 227ea34eb14..bdbd23edec1 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])