bridge-vlan: add support for defining aliases for vlan ids
authorFelix Fietkau <nbd@nbd.name>
Fri, 20 Nov 2020 17:58:10 +0000 (18:58 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 20 Nov 2020 18:01:17 +0000 (19:01 +0100)
commit4544f026bb0996adb6d95224031f0ba35cb8c046
tree0ed33ee832d2ef7037b0bf15ea884c688b2db3c7
parent5e18d5b9ccb189efb914733e7b74073f5c75e0df
bridge-vlan: add support for defining aliases for vlan ids

When defining a bridge-vlan like this:

config bridge-vlan
option device 'switch0'
option vlan '1'
option ports 'lan1 lan2 lan3 lan4'
option alias 'lan'

You can use switch0.lan instead of switch0.1 to refer to the VLAN.
This ensures that the VLAN ID can be kept in a single place in the config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
bridge.c
config.c
device.c
device.h
vlan.c