With the addition of the fabrics status in the resources, there are
fabrics and zones using the 'sdn' type. The finer distinction between
zones and fabrics is done using the new 'sdn_type' parameter.

Signed-off-by: Gabriel Goller <[email protected]>
---
 www/manager6/data/PermPathStore.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/www/manager6/data/PermPathStore.js 
b/www/manager6/data/PermPathStore.js
index c7ec42314c82..8a5344483f0d 100644
--- a/www/manager6/data/PermPathStore.js
+++ b/www/manager6/data/PermPathStore.js
@@ -43,7 +43,14 @@ Ext.define('PVE.data.PermPathStore', {
                     path = '/vms/' + record.get('vmid');
                     break;
                 case 'sdn':
-                    path = '/sdn/zones/' + record.get('sdn');
+                    switch (record.get('sdn_type')) {
+                        case 'zone':
+                            path = '/sdn/zones/' + record.get('sdn');
+                            break;
+                        case 'fabric':
+                            path = '/sdn/fabrics/' + record.get('sdn');
+                            break;
+                    }
                     break;
                 case 'storage':
                     path = '/storage/' + record.get('storage');
-- 
2.47.2



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to