luci-mod-network: add tags tab
authorPaul Donald <newtwen+github@gmail.com>
Wed, 31 Dec 2025 17:33:33 +0000 (18:33 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 31 Dec 2025 17:37:15 +0000 (18:37 +0100)
commit3c8ff551204adcabf10cb2f914e722542935d3ca
tree97b22132cca92694a33a4ad94ae18cb7138499bd
parent37aa2807eaca83808b6a3d58645492e966e9c5fd
luci-mod-network: add tags tab

For use with dnsmasq tags

Note that a MAC tab is possible but the same functionality
is present in the leases tab which handles MACs and tags.
A MAC tab has a 1:1 tag:MAC relationship, whereas the leases
has a many:many relationship.

The dnsmasq init file needs updating to use 'tag' in
place of 'networkid', which is an older legacy format still
understood by dnsmasq, but all documentation uses 'tag'.

tag names shall not match:
- network devices/interfaces
- service names

Three dnsmasq reserved tag names are:
- known
- !known
- known-othernet

Tag names can be prepended with '!' to invert their usage.

Closes #7178

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json