mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 01:40:34 +00:00
qemu: parse vlan trunks
Fixes an error when trying to edit a network with assigned trunks.
This commit is contained in:
parent
52af3f0de4
commit
a2ed069746
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user