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: {
if (net.rate) {
netstr += ",rate=" + net.rate;
}
if (net.queues) {
netstr += ",queues=" + net.queues;
}
if (net.disconnect) {
netstr += ",link_down=" + net.disconnect;
}
......
......@@ -19,6 +19,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
}
me.network.macaddr = values.macaddr;
me.network.disconnect = values.disconnect;
me.network.queues = values.queues;
if (values.rate) {
me.network.rate = values.rate;
......@@ -149,6 +150,15 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
emptyText: 'unlimited',
allowBlank: true
},
{
xtype: 'numberfield',
name: 'queues',
fieldLabel: gettext('Multiqueues'),
minValue: 1,
maxValue: 8,
value: '',
allowBlank: true
},
{
xtype: 'pvecheckbox',
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