summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status
AgeCommit message (Collapse)Author
2023-08-24luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPortsJo-Philipp Wich
Try to use the new luci/getBuiltinEthernetPorts RPC call to enumerate known ports and fall back to manual board.json parsing if the call is unavailable yet. The fallback code will be dropped in a while when everything settled. Ref: #6534, #6538 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-08-03Merge pull request #6490 from Ansuel/improve-chan-grapJo-Philipp Wich
2023-07-30luci-mod-status: improve channel graph for 5GHz radioChristian Marangi
Improve channel graph for 5GHz radio by using dotted lines to identify the intermediate channel, full line to identify the different channel band and bold line to identify the different section of the wifi channels. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-07-30luci-mod-status: fix wrong position of channel for 5GHz radioChristian Marangi
Channel tag for 5GHz radios is wrong and is confusing for any user that wants to better identify the used channel from the graph. Add some additional logic to better position the channel tag. Fixes: #6419 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-07-29luci-mod-status: gracefully handle missing port statsJo-Philipp Wich
Ref: https://github.com/openwrt/luci/commit/cba58fcafbe3a3f4f599354f7c123b546e045887#commitcomment-123043170 Fixes: 4e46624817 ("luci-mod-status: introduce ethernet port status view") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-07-27luci-mod-status: introduce ethernet port status viewJo-Philipp Wich
This commit adds an ethernet port status overview to the main status page. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-07-07luci-mod-status: channel_analysis.js: fix stale scan result.Milad Mohtashamirad
When the new result is empty, including when another scan is running in the background, the table was emptied, but the graph persisted. With this change, the list will persist and missing APs will be shown faded. Signed-off-by: Milad Mohtashamirad <miladmohtashamirad@gmail.com>
2023-03-04luci-mod-status: nftables add counter and comment for empty matchIngo Heinrich
Signed-off-by: Ingo Heinrich <ingo-github@goheinrich.de>
2023-02-09luci-mod-status: reduce DSL information shown in overview.Jan Hoffmann
As there is now a page in luci-mod-dsl that shows detailed DSl status, it is no longer necessary to have the entire information in the overview page. Only show the most important data on the overview instead. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-02-07luci-mod-status: nftables.js: remove unused fwtool requireJo-Philipp Wich
Fixes: #6203 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-03luci-mod-status: extend DSL metricsJan Hoffmann
Add the following metrics: - Bitswap and rate adaptation status - Impulse noise protection (INP) - Retransmission status (G.INP) - Channel error counters (CV-C, FEC-C) - G.INP counters (MINEFTR, LEFTRS, rtx-tx, rtx-c, rtx-uc) - Modem chipset and firmware version Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-02-03luci-mod-status: rename some DSL status itemsJan Hoffmann
Fix some small inaccuracies and inconsistencies between items. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-02-03luci-mod-status: group DSL metrics into sections for more readabilityJan Hoffmann
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-01-28luci-mod-status: improve handling of DSL metrics that are not availableJan Hoffmann
Currently, non-existing values (null or undefined) are formatted like zero values. Add explicit handling to allow the user to distinguish between those and actual zero values. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-01-26luci-mod-status: add missing cbi-section class to routing viewFlorian Eckert
With the material theme, there is a gap between the tab view and the content. The css class 'cbi-section' is missing here in the data-tab div. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2023-01-23treewide: bump PKG_RELEASE for libiwinfo ABI changeChristian Marangi
Bump PKG_RELEASE for libiwinfo ABI change for rpcd-mod-luci and luci-mod-status. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-30luci-mod-status: fix neighbour displayKevin Darbyshire-Bryant
The neighbour display parses the output of 'ip -4 neigh show' e.g. 192.168.219.95 dev eth1 lladdr 38:b4:d3:c9:b2:0c REACHABLE 192.168.219.200 dev eth1 lladdr 04:c4:61:12:f2:d2 STALE Using regexp /^([0-9a-f:.]+) (.+) (\S+)$/ Unfortunately there's a space character that sneaks in at the end of line, so let's make this less brittle by accepting lines that may end with spaces e.g. /^([0-9a-f:.]+) (.+) (\S+) *$/ Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2022-12-23luci-mod-status: handle HE channel width for channel_analysisChristian Marangi
Handle HE channel width for channel analysis status page and correctly draw local interface band width. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-23luci-mod-status: fix channel_analysis ReferenceError: diff is not definedChristian Marangi
In refactoring the code there was an error and the sort function wasn't correctly reworked with diff not correctly dropped. Drop that and correctly sort the WiFi ap if the channel is different. Fixes: 75dcb0975472 ("luci-mod-status: improve channel_analysis page") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-17luci-base, luci-mod-status: expose LuCI version via ubusJo-Philipp Wich
Instead of scraping the LuCI version from Lua sources, fetch it via ubus in order to be independent from the Lua runtime. Fixes: #6154 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-12-13luci-mid-status: nftables.js: minor cleanups and enhancementsJo-Philipp Wich
- Recognize `log` expression as action - Recognize `meta time` expression - Remove debug tooltip from `reject` targets Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-12-13luci-mod-status: improve channel_analysis pageAnsuel Smith
Many user complained problem with using pool with wifi scan. This comes from the limitation that some wifi driver have problems with scanning nearby wifi and keeping traffic. Fix this by doing the wifi scan only one time on page load and provide a button to refresh the channels manually. The original implementation is preserved as the user can simply reenable the poll referesh from the ui. While at it also sort the table by channel instead of by signal quality to better track the most used channels in the table. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [rewrap commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-mod-status: transform status page Lua template into ucode templateJo-Philipp Wich
Transform the only Lua template of the status module into an equivalent ucode template and make it conditionally include the legacy Lua logic factored out in a previous commit. Only if the ucode Lua bridge is installed and loadable, the Lua template loading the legacy Lua status partials is included. After this commit, luci-mod-status is free of Lua dependencies. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-mod-status: remove uneeded libiwinfo-lua dependencyJo-Philipp Wich
Since the LuCI status module was rewritten into client side views, there is no server side Lua processing anymore. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-22luci-mod-status: fix determining DSL modem typeJo-Philipp Wich
The `network.getDSLModemType()` function returns a promise, so handle it accordingly. Fixes: 45ab2cd6be ("luci-mod-status: use network.getDSLModemType()") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-21luci-mod-status: use network.getDSLModemType()Andre Heider
This matches what luci-mod-network does for the DSL modem configuration. Since this is based on a common uci config, it may also prevent issues as fixed with 111c551c "luci-base: fix DSL feature detection" in the future. Signed-off-by: Andre Heider <a.heider@gmail.com>
2022-09-18luci-mod-status: nftables.js: correct icmp displayKevin Darbyshire-Bryant
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2022-07-05luci-mod-status: nftables.js: fix OOM on big nftables IP setsAlexander Georgievskiy
Signed-off-by: Alexander Georgievskiy <galeksandrp@gmail.com>
2022-04-27luci-mod-status: hide iptables firewall status when nft is presentJo-Philipp Wich
Do not expose the iptables status page as menu item when nftables is present on the system. Instead add a warning banner to the nftables status page directing the user to the hidden iptables status page when we encounter legacy rules on the system. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-27luci-mod-status: nftables: add translations for further expression kindsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-03-28luci-mod-status,mod-network: Added fqdn-name to DHCPv4 lease tableMax S Kash
Added code to display fcdn-name in DHCPv4 lease table. (based on code in DHCPv6 lease table) Signed-off-by: Max S Kash <asukms@ya.ru> Indentation adjused and wrapped commit message Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-02-10luci-mod-status: nftables.js: align flow expr workaround with upstreamJo-Philipp Wich
Ref: https://git.netfilter.org/nftables/commit/?id=160d44c91113849b9c09f6bbad159e10ded1ca54 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-10luci-mod-status: correct nft meta.mark descriptionJo-Philipp Wich
Ref: https://github.com/openwrt/luci/commit/bf175fd51a9cfc33be0c19faddda714854065180#commitcomment-66390835 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-07luci-mod-status: add nftables status pageJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-07luci-mod-status: display full HE rate informationDaniel Golle
Associated Stations on the status page should also show full HE rate information which was added by commit f35e877dc6 ("luci-mod-network: add 802.11ax HE support") However, it was only added to the Wireless page and not to the summary on the Status page. Add it there as well. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-11-29luci-mod-status: change "Storage usage" heading to just "Storage"Jo-Philipp Wich
Also rename `25_diskfree.js` to `25_storage.js` to make naming anologeous with "Memory" / `20_memory.js`. Fixes: f09920f21a ("luci-mod-status: add diskfree info") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-25luci-mod-status: add diskfree infoFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-10-28luci-mod-status: disable DSL status if not presentJo-Philipp Wich
Fixes: #5465 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-09-22Merge pull request #5374 from Ansuel/fix-wifiJo-Philipp Wich
luci-mod-status: some improvement to wifi status
2021-09-20luci-mod-status: Add Target Platform (e.g. ath79/ipq806x/etc)Paul Dee
revealed under: ubus call system board board.release.target Useful reminder for what to download Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
2021-09-18luci-mod-status: fix wrong logic for maclist adding featureAnsuel Smith
Currently any new entry added to the black/whitelist deletes the others. Fix this and improve the rule apply by firstly disconnect the wifi client. Fixes: #5343 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-09-18luci-mod-status: cosmetic fix for isWPSEnabled in wifi statusAnsuel Smith
Drop isWPSEnabled table as it's really not needed and can directly included in the network table. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-09-03luci-mod-status: move index acl into own fileFlorian Eckert
The ACL file luci-mod-status.json is already quite long. It is also a separate menu item in LuCI, so in my view it makes sense to move it to a separate file. An additional positive effect is that the file then becomes clearer. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-03luci-mod-status: set default value if no route records foundFlorian Eckert
If no entries for the status tables are available. Then add the following default entry 'No entries available' This looks better, because not only the table header is displayed. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-01luci-mod-status: optimize view/formatting for status/routingVladislav Grigoryev
Optimize view and formatting for the status/routing page. Remove redundant style and header abbreviations. Consolidate terminology for IPv4 and IPv6 categories. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-26luci-mod-status: merge status/dmesg with status/syslogVladislav Grigoryev
Merge "Kernel Log" with "System Log" as an extra tab. Consolidate logging facilities for more intuitive navigation. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-11status: make buffered conditionalFritz D. Ansel
when buffered could not be read, there is just a questionmark (on e8450 non-ubi) Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
2021-08-09Merge pull request #5235 from vgaetera/status-routingJo-Philipp Wich
luci-mod-status: status/routing support for pbr
2021-08-08luci-mod-status: fix description for luci-mod-status-channel_analysisVladislav Grigoryev
Update "modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json". Fix incorrect description for "luci-mod-status-channel_analysis". Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-07luci-mod-status: status/routing support for pbrVladislav Grigoryev
Provide comprehensive status information for routing. Rename the "Status > Routes" page to "Status > Routing". Unify sorting for the "Status" and "Network" menus. Add tabs for IPv4 and IPv6 and reorganize the contents. Display routing rules and their priorities for each protocol. Policy-based routing is an increasingly popular problem. Netifd natively supports policy-based routing: * The interface-specific options "ip4table" and "ip6table". * The routing rules using the "rule" and "rule6" sections. LuCI is missing the information about routing rules. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>