luci-mod-network: add support for bonding device in netifd
authorhitech95 <nicveronese@gmail.com>
Fri, 26 Apr 2024 19:46:28 +0000 (21:46 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 19 Dec 2024 18:44:47 +0000 (18:44 +0000)
commitfb4cf432d2232a0ba2ccd3a8ff81a3679c8d054d
treea428ef5271f8c2a3a76d91191a1f95cdcc8c4ba8
parent7cd6b385e0890b2a35ac9718e16a6f9a861cb98b
luci-mod-network: add support for bonding device in netifd

netifd support for bonding devices has been added in commit 5ba9744.
The other way to have bonding available in luci is via
luci-proto-bonding and its proto-bonding dependency.

luci-proto-bonding requires an IP address on a bond interface due to a
netifd limitation. This can cause some issues if you want to bridge an
Ethernet port and a bond.

This patch aims to have the device to be configurable not as an
interface protocol but as a device.

Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js