This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.17 by this push:
     new 2bb64397935 ui: fix suitable shared network not showing while import 
(#7016)
2bb64397935 is described below

commit 2bb64397935ad3a2b19792ab86b6f7088cd826f1
Author: Abhishek Kumar <[email protected]>
AuthorDate: Fri Dec 23 14:17:54 2022 +0530

    ui: fix suitable shared network not showing while import (#7016)
    
    In import VM form, shared network is not showing when it is in Setup state 
which should not be the case.
    This PR fixes that.
    
    Signed-off-by: Abhishek Kumar <[email protected]>
---
 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 5404a32479c..227ea34eb14 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')
+          this.validNetworks[item.id] = this.validNetworks[item.id].filter(x 
=> (x.state === 'Implemented' || (x.state === 'Setup' && x.type === 'Shared')))
         }
         if (this.filterMatchKey) {
           this.validNetworks[item.id] = this.validNetworks[item.id].filter(x 
=> x[this.filterMatchKey] === item[this.filterMatchKey])

Reply via email to