]> git.proxmox.com Git - pve-manager.git/blame - www/manager6/sdn/zones/QinQEdit.js
bump version to 8.2.7
[pve-manager.git] / www / manager6 / sdn / zones / QinQEdit.js
CommitLineData
9233148b
AD
1Ext.define('PVE.sdn.zones.QinQInputPanel', {
2 extend: 'PVE.panel.SDNZoneBase',
3
f3c1eac7
TL
4 onlineHelp: 'pvesdn_zone_plugin_qinq',
5
9233148b 6 onGetValues: function(values) {
069a28eb 7 let me = this;
9233148b 8
069a28eb
TL
9 if (me.isCreate) {
10 values.type = me.type;
11 } else {
12 delete values.sdn;
13 }
9233148b 14
069a28eb 15 return values;
9233148b
AD
16 },
17
8058410f 18 initComponent: function() {
069a28eb 19 let me = this;
9233148b 20
069a28eb 21 me.items = [
069a28eb
TL
22 {
23 xtype: 'textfield',
24 name: 'bridge',
25 fieldLabel: 'Bridge',
26 allowBlank: false,
fd453af7
SH
27 vtype: 'BridgeName',
28 minLength: 1,
29 maxLength: 10,
069a28eb
TL
30 },
31 {
32 xtype: 'proxmoxintegerfield',
33 name: 'tag',
34 minValue: 0,
35 maxValue: 4096,
36 fieldLabel: gettext('Service VLAN'),
f6710aac 37 allowBlank: false,
069a28eb
TL
38 },
39 {
40 xtype: 'proxmoxKVComboBox',
41 name: 'vlan-protocol',
e07191a0 42 fieldLabel: gettext('Service VLAN Protocol'),
069a28eb
TL
43 allowBlank: true,
44 value: '802.1q',
45 comboItems: [
46 ['802.1q', '802.1q'],
47 ['802.1ad', '802.1ad'],
48 ],
49 },
9233148b
AD
50 ];
51
52 me.callParent();
f6710aac 53 },
9233148b 54});