X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Fview%2Fcbi%2Fnetwork_ifacelist.htm;fp=libs%2Fweb%2Fluasrc%2Fview%2Fcbi%2Fnetwork_ifacelist.htm;h=0000000000000000000000000000000000000000;hp=643d849a5071f002808437ebf6297fc54f005aac;hb=7043c30e0e55bbbfacdddf97619b6bae96d20ddb;hpb=bbb44cf245c11bc0c1d59e836007c9e8c3bfa209 diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm deleted file mode 100644 index 643d849a5..000000000 --- a/libs/web/luasrc/view/cbi/network_ifacelist.htm +++ /dev/null @@ -1,81 +0,0 @@ -<%+cbi/valueheader%> - -<%- - local utl = require "luci.util" - local net = require "luci.model.network".init() - local cbeid = luci.cbi.FEXIST_PREFIX .. self.config .. "." .. section .. "." .. self.option - - local iface - local ifaces = net:get_interfaces() - local value - - if self.map:formvalue(cbeid) == "1" then - value = self:formvalue(section) or self.default or "" - else - value = self:cfgvalue(section) or self.default - end - - local checked = { } - - if value then - for value in utl.imatch(value) do - checked[value] = true - end - else - local n = self.network and net:get_network(self.network) - if n then - local i - for _, i in ipairs(n:get_interfaces() or { n:get_interface() }) do - checked[i:name()] = true - end - end - end --%> - - - - -<%+cbi/valuefooter%>