luci-mod-network: interfaces.js: fix ifname migration in device sections
The migration code attempted to add new device sections instead of moving the ifname option to a ports list within the existing ones. Fixes: #5108 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
608f89429b
commit
e13d82a202
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ return view.extend({
|
||||||
var tasks = [];
|
var tasks = [];
|
||||||
|
|
||||||
this.deviceWithIfnameSections().forEach(function(ds) {
|
this.deviceWithIfnameSections().forEach(function(ds) {
|
||||||
tasks.push(uci.add('network', ds['.name'], {
|
tasks.push(uci.callSet('network', ds['.name'], {
|
||||||
'ifname': '',
|
'ifname': '',
|
||||||
'ports': L.toArray(ds.ifname)
|
'ports': L.toArray(ds.ifname)
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue