]>
Commit | Line | Data |
---|---|---|
9233148b AD |
1 | Ext.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, | |
27 | }, | |
28 | { | |
29 | xtype: 'proxmoxintegerfield', | |
30 | name: 'tag', | |
31 | minValue: 0, | |
32 | maxValue: 4096, | |
33 | fieldLabel: gettext('Service VLAN'), | |
f6710aac | 34 | allowBlank: false, |
069a28eb TL |
35 | }, |
36 | { | |
37 | xtype: 'proxmoxKVComboBox', | |
38 | name: 'vlan-protocol', | |
39 | fieldLabel: gettext('Service-VLAN Protocol'), | |
40 | allowBlank: true, | |
41 | value: '802.1q', | |
42 | comboItems: [ | |
43 | ['802.1q', '802.1q'], | |
44 | ['802.1ad', '802.1ad'], | |
45 | ], | |
46 | }, | |
9233148b AD |
47 | ]; |
48 | ||
49 | me.callParent(); | |
f6710aac | 50 | }, |
9233148b | 51 | }); |