mirror of https://github.com/apache/cloudstack.git
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 <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
973b0e28fd
commit
83dca2bf51
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in New Issue