From: Gabriel Goller <g.goller@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager v2 3/3] fabrics: ospf: add network-type property in interface panel
Date: Tue, 5 May 2026 11:13:38 +0200 [thread overview]
Message-ID: <20260505091342.106949-4-g.goller@proxmox.com> (raw)
In-Reply-To: <20260505091342.106949-1-g.goller@proxmox.com>
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
prev parent reply other threads:[~2026-05-05 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-05 9:13 [PATCH manager/network/proxmox-ve-rs v2 0/3] Expose OSPF Network-Type option Gabriel Goller
2026-05-05 9:13 ` [PATCH proxmox-ve-rs v2 1/3] fabrics: ospf: expose network-type interface property Gabriel Goller
2026-05-05 9:13 ` [PATCH pve-network v2 2/3] fabrics: add ospf network_type property to interfaces Gabriel Goller
2026-05-05 9:13 ` Gabriel Goller [this message]
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=20260505091342.106949-4-g.goller@proxmox.com \
--to=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.