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>
(cherry picked from commit 49be69316b
)
This commit is contained in:
parent
d9bff53a1c
commit
b860704936
1 changed files with 3 additions and 1 deletions
|
@ -326,12 +326,14 @@ return view.extend({
|
||||||
tasks.push(uci.callAdd('network', 'device', null, {
|
tasks.push(uci.callAdd('network', 'device', null, {
|
||||||
'name': device_name,
|
'name': device_name,
|
||||||
'type': 'bridge',
|
'type': 'bridge',
|
||||||
'ports': L.toArray(ns.ifname)
|
'ports': L.toArray(ns.ifname),
|
||||||
|
'macaddr': ns.macaddr
|
||||||
}));
|
}));
|
||||||
|
|
||||||
tasks.push(uci.callSet('network', ns['.name'], {
|
tasks.push(uci.callSet('network', ns['.name'], {
|
||||||
'type': '',
|
'type': '',
|
||||||
'ifname': '',
|
'ifname': '',
|
||||||
|
'macaddr': '',
|
||||||
'device': device_name
|
'device': device_name
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue