From: Stefan Hanreich <s.hanre...@proxmox.com> Extends the common FabricEdit component and adds the OSPF-specific items to it. The only modifiable item is the area. The other properties could be made modifiable in the future, but would need to be checked closely (e.g., to change loopback_prefix, we would need to check every node, and to change the name we would need to modify ever node's config as well.)
Co-authored-by: Stefan Hanreich <s.hanre...@proxmox.com> Signed-off-by: Gabriel Goller <g.gol...@proxmox.com> --- www/manager6/Makefile | 1 + www/manager6/sdn/fabrics/ospf/FabricEdit.js | 40 +++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 www/manager6/sdn/fabrics/ospf/FabricEdit.js diff --git a/www/manager6/Makefile b/www/manager6/Makefile index f7cba245f164..39abd8292044 100644 --- a/www/manager6/Makefile +++ b/www/manager6/Makefile @@ -309,6 +309,7 @@ JSSRC= \ sdn/fabrics/openfabric/InterfacePanel.js \ sdn/fabrics/openfabric/FabricEdit.js \ sdn/fabrics/ospf/InterfacePanel.js \ + sdn/fabrics/ospf/FabricEdit.js \ storage/ContentView.js \ storage/BackupView.js \ storage/Base.js \ diff --git a/www/manager6/sdn/fabrics/ospf/FabricEdit.js b/www/manager6/sdn/fabrics/ospf/FabricEdit.js new file mode 100644 index 000000000000..34f52ce31376 --- /dev/null +++ b/www/manager6/sdn/fabrics/ospf/FabricEdit.js @@ -0,0 +1,40 @@ +Ext.define('PVE.sdn.Fabric.Ospf.Fabric.Edit', { + extend: 'PVE.sdn.Fabric.Fabric.Edit', + xtype: 'pveSDNOspfRouteEdit', + + subject: 'OSPF', + + onlineHelp: 'pvesdn_ospf_fabric', + + url: '/cluster/sdn/fabrics/ospf', + + items: [ + { + xtype: 'textfield', + fieldLabel: gettext('Name'), + labelWidth: 120, + name: 'fabric_id', + allowBlank: false, + bind: { + disabled: '{!isCreate}', + }, + }, + { + xtype: 'textfield', + fieldLabel: gettext('Area'), + labelWidth: 120, + name: 'area', + allowBlank: false, + }, + { + xtype: 'textfield', + fieldLabel: gettext('Loopback IP Prefix'), + labelWidth: 120, + name: 'loopback_prefix', + allowBlank: false, + bind: { + disabled: '{!isCreate}', + }, + }, + ], +}); -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel