From ec020cee0c44793f8ce1b346675c6a36e63b0154 Mon Sep 17 00:00:00 2001 From: Rafał Miłecki Date: Mon, 17 May 2021 10:53:57 +0200 Subject: luci-mod-network: drop support for *editing* legacy bridges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old way of defining bridge (L2) as part of interface (L3) is deprecated. All such configs should be migrated to define bridge as L3 UCI section type "device". Signed-off-by: Rafał Miłecki --- .../htdocs/luci-static/resources/view/network/interfaces.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/luci-mod-network/htdocs/luci-static/resources/view') 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 5cc85eadb3..7de1e04ac2 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 @@ -405,6 +405,12 @@ return view.extend({ }, this); o.write = function() {}; + o = s.taboption('general', widgets.DeviceSelect, 'ifname', _('Device')); + o.nobridges = false; + o.noaliases = false; + o.optional = false; + o.network = ifc.getName(); + proto_select = s.taboption('general', form.ListValue, 'proto', _('Protocol')); proto_select.modalonly = true; @@ -677,7 +683,6 @@ return view.extend({ } ifc.renderFormOptions(s); - nettools.addDeviceOptions(s, null, true); // Common interface options o = nettools.replaceOption(s, 'advanced', form.Flag, 'defaultroute', _('Use default gateway'), _('If unchecked, no default route is configured')); -- cgit v1.2.3