Commit b7baac5e authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

add multiqueues field to nic form

Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent c4c740ea
...@@ -66,6 +66,9 @@ Ext.define('PVE.Parser', { statics: { ...@@ -66,6 +66,9 @@ Ext.define('PVE.Parser', { statics: {
if (net.rate) { if (net.rate) {
netstr += ",rate=" + net.rate; netstr += ",rate=" + net.rate;
} }
if (net.queues) {
netstr += ",queues=" + net.queues;
}
if (net.disconnect) { if (net.disconnect) {
netstr += ",link_down=" + net.disconnect; netstr += ",link_down=" + net.disconnect;
} }
......
...@@ -19,6 +19,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', { ...@@ -19,6 +19,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
} }
me.network.macaddr = values.macaddr; me.network.macaddr = values.macaddr;
me.network.disconnect = values.disconnect; me.network.disconnect = values.disconnect;
me.network.queues = values.queues;
if (values.rate) { if (values.rate) {
me.network.rate = values.rate; me.network.rate = values.rate;
...@@ -149,6 +150,15 @@ Ext.define('PVE.qemu.NetworkInputPanel', { ...@@ -149,6 +150,15 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
emptyText: 'unlimited', emptyText: 'unlimited',
allowBlank: true allowBlank: true
}, },
{
xtype: 'numberfield',
name: 'queues',
fieldLabel: gettext('Multiqueues'),
minValue: 1,
maxValue: 8,
value: '',
allowBlank: true
},
{ {
xtype: 'pvecheckbox', xtype: 'pvecheckbox',
fieldLabel: gettext('Disconnect'), fieldLabel: gettext('Disconnect'),
......
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