% -- Copyright 2010 Jo-Philipp Wich (jow@openwrt.org) -- Copyright 2015 OVH (OverTheBox@ovh.net) -- Simon Lelievre (simon.lelievre@corp.ovh.com) -- Sebastien Duponcheel (sebastien.duponcheel@ovh.net) -- Copyright 2018-2020 Ycarus - Yannick Chabanois (ycarus@zugaina.org) for OpenMPTCProuter -- -- Part of this file come from 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/) -%> <%- 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" local bandwidthtotalurl = "admin/network/mptcp/multipath_bandwidth" local bandwidthintfurl = "admin/network/mptcp/interface_bandwidth" -%> <%+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%>) |