[pve-devel] [PATCH pve-manager v2 03/11] fabric: add OpenFabric interface properties

Gabriel Goller g.goller at proxmox.com
Fri Apr 4 18:28:58 CEST 2025


From: Stefan Hanreich <s.hanreich at proxmox.com>

This component extends the common Fabric InterfacePanel and overwrites
adds some items to it. These are all the available items when
configuring an openfabric interface. Most of these are hidden so as to
not clutter the interface too much with unnecessary elements, these are
used mainly for setting interface or node-specific properties, otherwise
the global fabric-specific properties should be used.

Co-authored-by: Stefan Hanreich <s.hanreich at proxmox.com>
Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
 www/manager6/Makefile                         |  1 +
 .../sdn/fabrics/openfabric/InterfacePanel.js  | 64 +++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 www/manager6/sdn/fabrics/openfabric/InterfacePanel.js

diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 7df96f58eb1f..afad1b7f4d87 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -304,6 +304,7 @@ JSSRC= 							\
 	sdn/zones/VlanEdit.js				\
 	sdn/zones/VxlanEdit.js				\
 	sdn/fabrics/Common.js				\
+	sdn/fabrics/openfabric/InterfacePanel.js				\
 	storage/ContentView.js				\
 	storage/BackupView.js				\
 	storage/Base.js					\
diff --git a/www/manager6/sdn/fabrics/openfabric/InterfacePanel.js b/www/manager6/sdn/fabrics/openfabric/InterfacePanel.js
new file mode 100644
index 000000000000..6d6e0797becc
--- /dev/null
+++ b/www/manager6/sdn/fabrics/openfabric/InterfacePanel.js
@@ -0,0 +1,64 @@
+Ext.define('PVE.sdn.Fabric.OpenFabric.InterfacePanel', {
+    extend: 'PVE.sdn.Fabric.InterfacePanel',
+
+    additionalColumns: [
+	{
+	    text: gettext('IPv6'),
+	    xtype: 'widgetcolumn',
+	    dataIndex: 'ipv6',
+	    flex: 1,
+	    widget: {
+		xtype: 'proxmoxtextfield',
+		isFormField: false,
+		bind: {
+		    disabled: '{record.isDisabled}',
+		},
+	    },
+	},
+	{
+	    text: gettext('Passive'),
+	    xtype: 'widgetcolumn',
+	    dataIndex: 'passive',
+	    flex: 2,
+	    hidden: true,
+	    widget: {
+		xtype: 'checkbox',
+		isFormField: false,
+	    },
+	},
+	{
+	    text: gettext('Hello Interval'),
+	    xtype: 'widgetcolumn',
+	    dataIndex: 'hello_interval',
+	    flex: 2,
+	    hidden: true,
+	    widget: {
+		xtype: 'proxmoxintegerfield',
+		isFormField: false,
+	    },
+	},
+	{
+	    text: gettext('Hello Multiplier'),
+	    xtype: 'widgetcolumn',
+	    dataIndex: 'hello_multiplier',
+	    flex: 2,
+	    hidden: true,
+	    widget: {
+		xtype: 'proxmoxintegerfield',
+		isFormField: false,
+	    },
+	},
+	{
+	    text: gettext('CSNP Interval'),
+	    xtype: 'widgetcolumn',
+	    dataIndex: 'csnp_interval',
+	    flex: 2,
+	    hidden: true,
+	    widget: {
+		xtype: 'proxmoxintegerfield',
+		isFormField: false,
+	    },
+	},
+    ],
+});
+
-- 
2.39.5





More information about the pve-devel mailing list