From: Rafał Miłecki Date: Mon, 31 May 2021 06:35:09 +0000 (+0200) Subject: luci-mod-network: migrate macaddr during bridge migration X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=49be69316bfea092e90c2f5a821ded961069f518;p=project%2Fluci.git 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 --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 78b952eff7..fe00b90b68 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -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 })); });