sdn: controllers: add isis controller

This commit is contained in:
Alexandre Derumier 2023-09-13 13:38:42 +02:00 committed by Fabian Grünbichler
parent 33506fa03d
commit 202e26d425
3 changed files with 67 additions and 0 deletions

View File

@ -277,6 +277,7 @@ JSSRC= \
sdn/controllers/Base.js \
sdn/controllers/EvpnEdit.js \
sdn/controllers/BgpEdit.js \
sdn/controllers/IsisEdit.js \
sdn/IpamView.js \
sdn/ipams/Base.js \
sdn/ipams/NetboxEdit.js \

View File

@ -895,6 +895,11 @@ Ext.define('PVE.Utils', {
ipanel: 'BgpInputPanel',
faIcon: 'crosshairs',
},
isis: {
name: 'isis',
ipanel: 'IsisInputPanel',
faIcon: 'crosshairs',
},
},
sdnipamSchema: {

View File

@ -0,0 +1,61 @@
Ext.define('PVE.sdn.controllers.IsisInputPanel', {
extend: 'PVE.panel.SDNControllerBase',
onlineHelp: 'pvesdn_controller_plugin_evpn',
onGetValues: function(values) {
var me = this;
if (me.isCreate) {
values.type = me.type;
values.controller = 'isis' + values.node;
} else {
delete values.controller;
}
return values;
},
initComponent: function() {
var me = this;
me.items = [
{
xtype: 'pveNodeSelector',
name: 'node',
fieldLabel: gettext('Node'),
multiSelect: false,
autoSelect: false,
allowBlank: false,
},
{
xtype: 'textfield',
name: 'isis-domain',
fieldLabel: 'Domain',
allowBlank: false,
},
{
xtype: 'textfield',
name: 'isis-net',
fieldLabel: 'Network entity title',
allowBlank: false,
},
{
xtype: 'textfield',
name: 'isis-ifaces',
fieldLabel: gettext('Interfaces'),
allowBlank: false,
},
];
me.advancedItems = [
{
xtype: 'textfield',
name: 'loopback',
fieldLabel: gettext('Loopback Interface'),
},
];
me.callParent();
},
});