luci-mod-network: migrate macaddr during bridge migration
authorRafał Miłecki <[email protected]>
Mon, 31 May 2021 06:35:09 +0000 (08:35 +0200)
committerRafał Miłecki <[email protected]>
Mon, 31 May 2021 19:48:09 +0000 (21:48 +0200)
Link: https://forum.openwrt.org/t/network-migration-21-02-0-rc2/97934
Signed-off-by: Rafał Miłecki <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 78b952eff75f6d95b28a49511d9df6fe2b41250f..fe00b90b68fdde73110a216fe250c9e154fb2ecd 100644 (file)
@@ -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
                        }));
                });