openwrt-redmi-ax3000/package/base-files/files/lib/functions
Til Kaiser 055d877a20 base-files: add ucidef_set_interface_netdev_range function
The ucidef_set_interface* functions can be used to
add network interfaces to a default network configuration.
Such network interfaces often have the same base interface
name (e.g., eth* or lan*). On devices with many network ports,
adding all ports to the default config can become inconvenient.

This commit adds a new uci function ucidef_set_interface_netdev_range,
which adds network interfaces for a specific port range to a given
OpenWrt interface. The first parameter is the OpenWrt interface, the
second is the base interface name, the third is the port start, and
the fourth is the port end range.

Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/17251
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-10-06 19:06:26 +02:00
..
caldata.sh base-files: fix offset conversion on caldata_patch_data() 2025-02-13 00:26:23 +01:00
ipv4.sh base-files: ipcalc.sh: Add tests for unroutable, etc 2023-12-12 12:30:35 -07:00
leds.sh base-files: support parse DT LED color and function 2023-12-02 19:46:14 +01:00
migrations.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
network.sh base-files: add support for retrieving IPv6 assignments 2023-02-24 23:56:36 +01:00
preinit.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
service.sh
system.sh base-files: introduce a function to get kernel version number 2025-07-14 22:30:20 +02:00
uci-defaults.sh base-files: add ucidef_set_interface_netdev_range function 2025-10-06 19:06:26 +02:00