This package allows you to monitor current state of the network interfaces specified in configuration file (/etc/config/luci_netports
).
This LuCI application developed for LuCI master branch. Application requires luabitop package to be installed.
Master branch of this repository requires index status page client side view implementation in the LuCI (see commit https://github.com/openwrt/luci/commit/c85af3d7618b55c499ce4bf58e3896068bd413ae). Support for older LuCI releases (e.g. for version 18.06.x) is left in the v1.x branch of this repository.
- English
- Russian
UCI configuration for this application is stored in /etc/config/luci_netports
file.
This file contain one global
section with global application settings and one or more port
sections with network ports settings.
The global
section contains global application settings. Default global
section configuration:
config global 'global'
option default_additional_info '0'
option default_h_mode '1'
option hv_mode_switch_button '1'
These options can be set in the global
section:
Name | Type | Required | Default | Description |
---|---|---|---|---|
default_additional_info |
boolean | no | 0 | Display additional information in horizontal view mode by default. |
default_h_mode |
boolean | no | 1 | Use horizontal view mode by default. |
hv_mode_switch_button |
boolean | no | 1 | Show button for manual switching between horizontal and vertical view modes. |
Horizontal display mode can be used maximum for 6 interfaces. If there are more interfaces, the vertical display mode will be automatically activated without the possibility of switching to the horizontal mode.
Sections of the type port
declare network port settings for displaying in application.
A minimal port declaration consists of the following lines:
config port
option ifname 'eth0'
These options can be set in the port
sections:
Name | Type | Required | Default | Description |
---|---|---|---|---|
ifname |
string | yes | (none) | Network interface name. |
name |
string | no | value of ifname |
Custom port name for displaying in application. |
type |
string | no | auto |
Custom port type. Available port types listed in the table below. |
disable |
boolean | no | false | Do not display specified interface. |
Available port types (type
setting):
Automatic network port type detection (auto
type):
Interface name regular expression(s) | Example(s) | Detected type |
---|---|---|
^eth\d+ ,^sw\d+p\d+ ,^en[a-z]\d+[a-z]\d+ |
eth0 , eth32 ,sw1p4 ,enp0s4 , ens9f0 |
copper |
^wlan\d+ ,^wl[a-z]\d+[a-z]\d+ |
wlan0 ,wlp0s4 , wls1f4 |
wifi |
^usb\d+ |
usb0 |
usb_rndis |
^wwan\d+ ,^ww[a-z]\d+[a-z]\d+ |
wwan0 ,wwp0s4 , wws1f4 |
usb_stick |
^ppp\d+ |
ppp0 |
ppp |
^tun\d+ ,^tap\d+ ,^wg\d+ |
tun0 , tap0 , wg0 |
tunnel |
Without additional information:
With additional information: