[pve-devel] [PATCH pve-manager 3/7] fabrics: add additional interface fields for openfabric and ospf

Gabriel Goller g.goller at proxmox.com
Fri Mar 28 18:13:35 CET 2025


Add InterfacePanel components for openfabric and ospf. These hold the
additional options which are protocol specific and are not shared. For
example the Hello Interval is openfabric specific.

Most of these are also hidden as to not clutter the interface too much.
There are also rarely used – most often the user sets a global property
which is automatically inherited by all interfaces.

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

diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 7df96f58eb1f..b75a455d70e6 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -304,6 +304,8 @@ JSSRC= 							\
 	sdn/zones/VlanEdit.js				\
 	sdn/zones/VxlanEdit.js				\
 	sdn/fabrics/Common.js				\
+	sdn/fabrics/openfabric/InterfaceEdit.js		\
+	sdn/fabrics/ospf/InterfaceEdit.js		\
 	storage/ContentView.js				\
 	storage/BackupView.js				\
 	storage/Base.js					\
diff --git a/www/manager6/sdn/fabrics/openfabric/InterfaceEdit.js b/www/manager6/sdn/fabrics/openfabric/InterfaceEdit.js
new file mode 100644
index 000000000000..6d6e0797becc
--- /dev/null
+++ b/www/manager6/sdn/fabrics/openfabric/InterfaceEdit.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,
+	    },
+	},
+    ],
+});
+
diff --git a/www/manager6/sdn/fabrics/ospf/InterfaceEdit.js b/www/manager6/sdn/fabrics/ospf/InterfaceEdit.js
new file mode 100644
index 000000000000..af4577c21e38
--- /dev/null
+++ b/www/manager6/sdn/fabrics/ospf/InterfaceEdit.js
@@ -0,0 +1,27 @@
+Ext.define('PVE.sdn.Fabric.Ospf.InterfacePanel', {
+    extend: 'PVE.sdn.Fabric.InterfacePanel',
+
+    additionalColumns: [
+	{
+	    text: gettext('Passive'),
+	    xtype: 'widgetcolumn',
+	    dataIndex: 'passive',
+	    flex: 1,
+	    hidden: true,
+	    widget: {
+		xtype: 'checkbox',
+		isFormField: false,
+	    },
+	},
+	{
+	    text: gettext('Unnumbered'),
+	    xtype: 'widgetcolumn',
+	    dataIndex: 'unnumbered',
+	    flex: 1,
+	    widget: {
+		xtype: 'checkbox',
+		isFormField: false,
+	    },
+	},
+    ],
+});
-- 
2.39.5





More information about the pve-devel mailing list