From b8607049360cad7b317f4c3b4106d2122250ea29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 31 May 2021 08:35:09 +0200 Subject: [PATCH] luci-mod-network: migrate macaddr during bridge migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Link: https://forum.openwrt.org/t/network-migration-21-02-0-rc2/97934 Signed-off-by: Rafał Miłecki (cherry picked from commit 49be69316bfea092e90c2f5a821ded961069f518) --- .../htdocs/luci-static/resources/view/network/interfaces.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 5626a2b823..64aa96090c 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 })); });