From: Lukas Sichert <l.sichert@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Lukas Sichert <l.sichert@proxmox.com>
Subject: [PATCH manager v3 1/2] ui: fabrics: make IPv4 interface column optional
Date: Wed, 15 Jul 2026 10:15:15 +0200 [thread overview]
Message-ID: <20260715081519.29721-2-l.sichert@proxmox.com> (raw)
In-Reply-To: <20260715081519.29721-1-l.sichert@proxmox.com>
The base interface panel keeps the IPv4 column in commonColumns, while
IPv6 is added conditionally through hasIpv6Support. BGP unnumbered
interfaces therefore have to override initComponent() and filter that base
column out manually.
Move the IPv4 column into the same conditional column-building path as
IPv6 and add a matching hasIpv4Support flag. Keep IPv4 support enabled
by default so existing panels inherit the previous behavior unless they
explicitly opt out. Then disable BGP IPv4 support declaratively by
setting that flag to false.
Signed-off-by: Lukas Sichert <l.sichert@proxmox.com>
Tested-by: Hannes Laimer <h.laimer@proxmox.com>
Reviewed-by: Hannes Laimer <h.laimer@proxmox.com>
---
www/manager6/sdn/fabrics/InterfacePanel.js | 30 +++++++++++--------
.../sdn/fabrics/bgp/InterfacePanel.js | 11 +------
2 files changed, 18 insertions(+), 23 deletions(-)
diff --git a/www/manager6/sdn/fabrics/InterfacePanel.js b/www/manager6/sdn/fabrics/InterfacePanel.js
index f07e7859..95424bc0 100644
--- a/www/manager6/sdn/fabrics/InterfacePanel.js
+++ b/www/manager6/sdn/fabrics/InterfacePanel.js
@@ -6,6 +6,7 @@ Ext.define('PVE.sdn.Fabric.InterfacePanel', {
nodeInterfaces: {},
+ hasIpv4Support: true,
hasIpv6Support: true,
selModel: {
@@ -59,19 +60,6 @@ Ext.define('PVE.sdn.Fabric.InterfacePanel', {
dataIndex: 'type',
flex: 1,
},
- {
- text: gettext('IPv4'),
- xtype: 'widgetcolumn',
- dataIndex: 'ip',
- flex: 1,
- widget: {
- xtype: 'proxmoxtextfield',
- isFormField: false,
- bind: {
- disabled: '{record.isDisabled}',
- },
- },
- },
],
additionalColumns: [],
@@ -112,6 +100,22 @@ Ext.define('PVE.sdn.Fabric.InterfacePanel', {
let columns = [...me.commonColumns];
+ if (me.hasIpv4Support) {
+ columns.push({
+ text: gettext('IPv4'),
+ xtype: 'widgetcolumn',
+ dataIndex: 'ip',
+ flex: 1,
+ widget: {
+ xtype: 'proxmoxtextfield',
+ isFormField: false,
+ bind: {
+ disabled: '{record.isDisabled}',
+ },
+ },
+ });
+ }
+
if (me.hasIpv6Support) {
columns.push({
text: gettext('IPv6'),
diff --git a/www/manager6/sdn/fabrics/bgp/InterfacePanel.js b/www/manager6/sdn/fabrics/bgp/InterfacePanel.js
index c7ac7627..fd5e6f4b 100644
--- a/www/manager6/sdn/fabrics/bgp/InterfacePanel.js
+++ b/www/manager6/sdn/fabrics/bgp/InterfacePanel.js
@@ -1,15 +1,6 @@
Ext.define('PVE.sdn.Fabric.Bgp.InterfacePanel', {
extend: 'PVE.sdn.Fabric.InterfacePanel',
+ hasIpv4Support: false,
hasIpv6Support: false,
-
- // BGP unnumbered interfaces have no IP - override commonColumns to
- // exclude the IP column that the base class defines.
- initComponent: function () {
- let me = this;
-
- me.commonColumns = me.commonColumns.filter((col) => col.dataIndex !== 'ip');
-
- me.callParent();
- },
});
--
2.47.3
next prev parent reply other threads:[~2026-07-15 8:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 8:15 [PATCH manager v3 0/2] ui: fabrics: handle unsupported IP properties for BGP interfaces Lukas Sichert
2026-07-15 8:15 ` Lukas Sichert [this message]
2026-07-15 8:15 ` [PATCH manager v3 2/2] ui: fabrics: skip unsupported IP properties on submit Lukas Sichert
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=20260715081519.29721-2-l.sichert@proxmox.com \
--to=l.sichert@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.