qemu: parse vlan trunks

Fixes an error when trying to edit a network with assigned
trunks.
This commit is contained in:
Wolfgang Bumiller 2016-04-11 11:44:29 +02:00 committed by Dietmar Maurer
parent 52af3f0de4
commit a2ed069746

View File

@ -47,6 +47,8 @@ Ext.define('PVE.Parser', { statics: {
res.disconnect = match_res[1];
} else if ((match_res = p.match(/^queues=(\d+)$/)) !== null) {
res.queues = match_res[1];
} else if ((match_res = p.match(/^trunks=(\d+(?:-\d+)?(?:;\d+(?:-\d+)?)*)$/)) !== null) {
res.trunks = match_res[1];
} else {
errors = true;
return false; // break
@ -84,6 +86,9 @@ Ext.define('PVE.Parser', { statics: {
if (net.disconnect) {
netstr += ",link_down=" + net.disconnect;
}
if (net.trunks) {
netstr += ",trunks=" + net.trunks;
}
return netstr;
},