libs/web: add support for exclude property to ifacelist and netlist widgets
[project/luci.git] / libs / web / luasrc / view / cbi / network_ifacelist.htm
index 5553da6ccfe0474749d39c93579829e5665e2b23..c4d392e9ed74ec2c424d59ac6c12152e311312a6 100644 (file)
@@ -40,7 +40,7 @@ $Id$
 <ul style="margin:0; list-style-type:none">
        <% for _, iface in ipairs(ifaces) do
             local link = iface:adminlink()
-         if not self.nobridges or not iface:is_bridge() then %>
+         if (not self.nobridges or not iface:is_bridge()) and iface:name() ~= self.exclude then %>
        <li>
                <input class="cbi-input-<%=self.widget or "radio"%>" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=
                        attr("type", self.widget or "radio") ..