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>
(cherry picked from commit e13d82a202
)
This commit is contained in:
parent
da2eefe94b
commit
a648b36372
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ return view.extend({
|
|||
var tasks = [];
|
||||
|
||||
this.deviceWithIfnameSections().forEach(function(ds) {
|
||||
tasks.push(uci.add('network', ds['.name'], {
|
||||
tasks.push(uci.callSet('network', ds['.name'], {
|
||||
'ifname': '',
|
||||
'ports': L.toArray(ds.ifname)
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue