modules/admin-full: hide special interfaces like imq0, mon.wlan0 etc.
[project/luci.git] / modules / admin-full / luasrc / view / admin_status / bandwidth.htm
index f12a222..25701fb 100644 (file)
@@ -13,10 +13,12 @@ $Id$
 -%>
 
 <%-
+       local ntm = require "luci.model.network".init()
+
        local dev
        local devices = { }
        for _, dev in luci.util.kspairs(luci.sys.net.devices()) do
-               if dev ~= "lo" then
+               if dev ~= "lo" and not ntm:ignore_interface(dev) then
                        devices[#devices+1] = dev
                end
        end
@@ -303,8 +305,4 @@ $Id$
        </tr>
 </table>
 
-
-<pre id="debug"></pre>
-
-
 <%+footer%>