<%=pcdata(stderr)%><% end %> + + +<%+footer%> diff --git a/luci-app-status/luasrc/view/status/wanstatus.htm b/luci-app-status/luasrc/view/status/wanstatus.htm new file mode 100644 index 000000000..e3da853f5 --- /dev/null +++ b/luci-app-status/luasrc/view/status/wanstatus.htm @@ -0,0 +1,1662 @@ +<% +-- Copyright 2015 OVH (OverTheBox@ovh.net) +-- Simon Lelievre (simon.lelievre@corp.ovh.com) +-- Sebastien Duponcheel (sebastien.duponcheel@ovh.net) +-- +-- This file is part of OverTheBox for OpenWrt. +-- +-- OverTheBox is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. +-- +-- OverTheBox is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with OverTheBox. If not, see (http://www.gnu.org/licenses/) +-%> +<% +-- Copyright 2018 Ycarus (Yannick Chabanois) ycarus@zugaina.org +-- +-- Small changes to make this work with OpenMPTCProuter +-- New features: +-- * DNS detection +-- * IPv6 route received +-- * latest version available +-- * MPTCP server status +-- * Server status, errors,icon,... +-- * Many tests +-%> +<%- + local ntm = require "luci.model.network".init() + local uci = require "luci.model.uci".cursor() + + function get_device(interface) + local dump = require("luci.util").ubus("network.interface.%s" % interface, "status", {}) + if dump and dump['l3_device'] ~= "" then + return dump['l3_device'] + else + return interface + end + end + + local dev + local devices = { "all" } + for _, dev in ipairs(ntm:get_networks()) do + --if dev ~= "lo" and not ntm:ignore_interface(dev) then + local multipath = uci:get("network", dev:name(), "multipath") + if multipath == "on" or multipath == "master" or multipath == "backup" or multipath == "handover" then + devices[#devices+1] = dev:name() + end + --end + end + + local curifname = luci.http.formvalue("dev") or "all" +-%> +<%+header%> + + + + + + +
<%:Inbound:%> | +0 <%:kbit/s%> (0 <%:kB/s%>) |
+
+ <%:Average:%> | +0 <%:kbit/s%> (0 <%:kB/s%>) |
+
+ <%:Peak:%> | +0 <%:kbit/s%> (0 <%:kB/s%>) |
+
<%:Outbound:%> | +0 <%:kbit/s%> (0 <%:kB/s%>) |
+
+ <%:Average:%> | +0 <%:kbit/s%> (0 <%:kB/s%>) |
+
+ <%:Peak:%> | +0 <%:kbit/s%> (0 <%:kB/s%>) |
+