luci-mod-network: migrate macaddr during bridge migration
Link: https://forum.openwrt.org/t/network-migration-21-02-0-rc2/97934 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
34dc351303
commit
49be69316b
1 changed files with 3 additions and 1 deletions
|
@ -326,12 +326,14 @@ return view.extend({
|
|||
tasks.push(uci.callAdd('network', 'device', null, {
|
||||
'name': device_name,
|
||||
'type': 'bridge',
|
||||
'ports': L.toArray(ns.ifname)
|
||||
'ports': L.toArray(ns.ifname),
|
||||
'macaddr': ns.macaddr
|
||||
}));
|
||||
|
||||
tasks.push(uci.callSet('network', ns['.name'], {
|
||||
'type': '',
|
||||
'ifname': '',
|
||||
'macaddr': '',
|
||||
'device': device_name
|
||||
}));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue