luci-mod-network: migrate more device options
authorRafał Miłecki <[email protected]>
Thu, 10 Jun 2021 11:20:41 +0000 (13:20 +0200)
committerJo-Philipp Wich <[email protected]>
Sun, 13 Jun 2021 18:12:19 +0000 (20:12 +0200)
Include mtu and igmp_snooping while migrating.

Signed-off-by: Rafał Miłecki <[email protected]>
(cherry picked from commit fa51d04459b16245d33a1562159c65d4b03a32f0)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 694d43141fd32aef7a3d4208d11bec50ccdc6059..a8fa727da7664c29474e5d7e1d399aeec864807e 100644 (file)
@@ -368,13 +368,17 @@ 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
                        }));
 
                        tasks.push(uci.callSet('network', ns['.name'], {
                                'type': '',
                                'ifname': '',
+                               'mtu': '',
                                'macaddr': '',
+                               'igmp_snooping': '',
                                'device': device_name
                        }));
                });