Commit bd754fed authored by Dietmar Maurer's avatar Dietmar Maurer

add IGMP protocol

And use pvetextfield instead of textfield to correctly handle 'delete' parameter.
parent e5044be2
...@@ -154,7 +154,7 @@ Ext.define('PVE.FirewallRulePanel', { ...@@ -154,7 +154,7 @@ Ext.define('PVE.FirewallRulePanel', {
deleteEmpty: !me.create, deleteEmpty: !me.create,
emptyText: 'any', emptyText: 'any',
editable: true, editable: true,
data: [['tcp', 'TCP'], ['udp', 'UDP'], ['icmp', 'ICMP']], data: [['tcp', 'TCP'], ['udp', 'UDP'], ['icmp', 'ICMP'], ['igmp', 'IGMP']],
fieldLabel: gettext('Protocol'), fieldLabel: gettext('Protocol'),
allowBlank: true allowBlank: true
}, },
...@@ -165,15 +165,17 @@ Ext.define('PVE.FirewallRulePanel', { ...@@ -165,15 +165,17 @@ Ext.define('PVE.FirewallRulePanel', {
value: '' value: ''
}, },
{ {
xtype: 'textfield', xtype: 'pvetextfield',
name: 'sport', name: 'sport',
deleteEmpty: !me.create,
value: '', value: '',
fieldLabel: gettext('Source port') fieldLabel: gettext('Source port')
}, },
{ {
xtype: 'textfield', xtype: 'pvetextfield',
name: 'dport', name: 'dport',
height: 22, // hack: set same height as text fields height: 22, // hack: set same height as text fields
deleteEmpty: !me.create,
value: '', value: '',
fieldLabel: gettext('Dest. port') fieldLabel: gettext('Dest. port')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment