[PATCH pve-manager v2 3/3] fabrics: ospf: add network-type property in interface panel

Gabriel Goller
2026-05-05T09:13:54Z

This allows the user to select a specific network type which will be
used for the ospf interface.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
.../sdn/fabrics/ospf/InterfacePanel.js | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)

diff --git a/www/manager6/sdn/fabrics/ospf/InterfacePanel.js b/www/manager6/sdn/fabrics/ospf/InterfacePanel.js
index b521b1a220a2..370137cba19b 100644
--- a/www/manager6/sdn/fabrics/ospf/InterfacePanel.js
+++ b/www/manager6/sdn/fabrics/ospf/InterfacePanel.js
@@ -1,5 +1,54 @@
+Ext.define('PVE.sdn.Fabric.Ospf.NetworkTypeSelector', {
+ extend: 'Proxmox.form.ComboGrid',
+ alias: ['widget.pveOspfNetworkTypeSelector'],
+
+ valueField: 'name',
+ displayField: 'name',
+
+ emptyText: 'auto',
+
+ listConfig: {
+ columns: [
+ {
+ header: gettext('NetworkType'),
+ dataIndex: 'name',
+ hideable: false,
+ sortable: true,
+ flex: 3,
+ },
+ ],
+ width: 360,
+ },
+
+ store: {
+ fields: ['name'],
+ data: [
+ {name: 'broadcast'},
+ {name: 'non-broadcast'},
+ {name: 'point-to-multipoint'},
+ {name: 'point-to-point'},
+ ],
+ },
+});
+
Ext.define('PVE.sdn.Fabric.Ospf.InterfacePanel', {
extend: 'PVE.sdn.Fabric.InterfacePanel',

hasIpv6Support: false,
+
+ additionalColumns: [
+ {
+ text: gettext('Network Type'),
+ xtype: 'widgetcolumn',
+ dataIndex: 'network_type',
+ flex: 1,
+ widget: {
+ xtype: 'pveOspfNetworkTypeSelector',
+ isFormField: false,
+ bind: {
+ disabled: '{record.isDisabled}',
+ },
+ },
+ },
+ ],
});
--
2.47.3