[PATCH luci] luci-mod-network: migrate more device options

Rafał Miłecki zajec5 at gmail.com
Thu Jun 10 04:22:33 PDT 2021


From: Rafał Miłecki <rafal at milecki.pl>

Include mtu, igmp_snooping and igmp_v3 while migrating.

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 .../luci-static/resources/view/network/interfaces.js      | 8 +++++++-
 1 file changed, 7 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 0847de905e..1e0b0e75e6 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
@@ -360,13 +360,19 @@ return view.extend({
 				'name': device_name,
 				'type': 'bridge',
 				'ports': L.toArray(ns.ifname),
-				'macaddr': ns.macaddr
+				'mtu': ns.mtu,
+				'macaddr': ns.macaddr,
+				'igmp_snooping': ns.igmp_snooping,
+				'igmp_v3': ns.igmp_v3
 			}));
 
 			tasks.push(uci.callSet('network', ns['.name'], {
 				'type': '',
 				'ifname': '',
+				'mtu': '',
 				'macaddr': '',
+				'igmp_snooping': '',
+				'igmp_v3': '',
 				'device': device_name
 			}));
 		});
-- 
2.26.2




More information about the openwrt-devel mailing list