libs/core: do not consider alternative routing tables in luci.model.network for now
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 4 Apr 2013 14:06:12 +0000 (14:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 4 Apr 2013 14:06:12 +0000 (14:06 +0000)
libs/core/luasrc/model/network.lua

index ecfaa84..6496116 100644 (file)
@@ -614,7 +614,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.target == addr and rt.mask == mask then
+                                       if not rt.table and rt.target == addr and rt.mask == mask then
                                                return net, s
                                        end
                                end