luci-mod-interfaces: simplify configuring MAC address of 802.1q devices
authorJo-Philipp Wich <[email protected]>
Sat, 5 Jun 2021 14:16:14 +0000 (16:16 +0200)
committerJo-Philipp Wich <[email protected]>
Sat, 12 Jun 2021 17:24:00 +0000 (19:24 +0200)
commite8dd9331c1242d588766bb75730ccbe7641268fd
tree0197e3604b968df9155595680dff2528a089011b
parent5886f7478de8e89f55a10d3fbfdcb3bb64cbcc8c
luci-mod-interfaces: simplify configuring MAC address of 802.1q devices

Treat not explicitly configured, preexisting VLAN interfaces as simple
network devices when adding configuration for them, since it is more
likely that people want to set general device properties such as MAC
address instead of reconfiguring ingress/egress QoS mapping, which is
the only editable property of preexisting VLAN device config dialogs.

Ref: https://github.com/openwrt/luci/issues/5102
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 3c6b59504aaa6ee33a2ee768aafc0aeaefb06004)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js