libs/core: remove route enabled check in network model after netifd update in OpenWrt...
[project/luci.git] / libs / core / luasrc / model / network.lua
index df6bf1e..c2c2e66 100644 (file)
@@ -38,7 +38,7 @@ module "luci.model.network"
 
 
 IFACE_PATTERNS_VIRTUAL  = { }
-IFACE_PATTERNS_IGNORE   = { "^wmaster%d", "^wifi%d", "^hwsim%d", "^imq%d", "^ifb%d", "^mon%.wlan%d", "^sit%d", "^lo$" }
+IFACE_PATTERNS_IGNORE   = { "^wmaster%d", "^wifi%d", "^hwsim%d", "^imq%d", "^ifb%d", "^mon%.wlan%d", "^sit%d", "^gre%d", "^lo$" }
 IFACE_PATTERNS_WIRELESS = { "^wlan%d", "^wl%d", "^ath%d", "^%w+%.network%d" }
 
 
@@ -594,7 +594,7 @@ function get_status_by_route(self, addr, mask)
                        if s and s.route then
                                local rt
                                for _, rt in ipairs(s.route) do
-                                       if rt.enabled and rt.target == addr and rt.mask == mask then
+                                       if rt.target == addr and rt.mask == mask then
                                                return net, s
                                        end
                                end