summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-31 08:35:09 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-31 21:48:09 +0200
commit49be69316bfea092e90c2f5a821ded961069f518 (patch)
tree3bf507710d0614799cdcd82e7b5651840b562c9c /modules/luci-mod-network/htdocs/luci-static
parent34dc351303bad74c8f753c37788814796888129a (diff)
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>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js4
1 files changed, 3 insertions, 1 deletions
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
}));
});