all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Gabriel Goller <g.goller@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager] permissions: differentiate between zone and fabric paths
Date: Wed, 13 Aug 2025 15:54:40 +0200	[thread overview]
Message-ID: <20250813135442.308923-1-g.goller@proxmox.com> (raw)

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 <g.goller@proxmox.com>
---
 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
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


             reply	other threads:[~2025-08-13 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-13 13:54 Gabriel Goller [this message]
2025-08-13 13:56 ` Gabriel Goller
2025-08-22  9:01 ` Gabriel Goller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250813135442.308923-1-g.goller@proxmox.com \
    --to=g.goller@proxmox.com \
    --cc=20250813133023.288351-1-g.goller@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal