Does VyOS support protocol-based VLANs and if not, would it be much work to do so?
Here is an example using bridging from Mikrotik:
https://wiki.mikrotik.com/wiki/Manual:CRS3xx_series_switches#Protocol_Based_VLAN
First they create the bridge and attach physical interfaces to it.
Then they define the vlan mapping as in which VLANs will be tagged and which will be untagged for the bridge vs physical interfaces.
And finally they define the protocol-based VLANs which acts on ethertype (mac-protocol in the config example) to put frames based on ethertype into different VLANs.
While doing similar on a HPE Comware device the config is like (in below example ARP+IPv4 goes into shared VLAN100 but segmented with protected VLAN while for IPv6 each host (client) gets its own VLAN101…148 depending on interface in the switch):
vlan 100
description UPLINK
protocol-vlan 0 mode ethernetii etype 0806
protocol-vlan 4 ipv4
#
vlan 101
description 01_CUSTOMER_A
protocol-vlan 6 ipv6
#
vlan 102
description 02_CUSTOMER_B
protocol-vlan 6 ipv6
#
interface GigabitEthernet1/0/1
description 01_CUSTOMER_A
port link-type hybrid
undo port hybrid vlan 1
port hybrid vlan 100 101 untagged
port hybrid pvid vlan 3101
port hybrid protocol-vlan vlan 100 0
port hybrid protocol-vlan vlan 100 4
port hybrid protocol-vlan vlan 101 6
port-isolate enable
#
interface GigabitEthernet1/0/2
description 02_CUSTOMER_B
port link-type hybrid
undo port hybrid vlan 1
port hybrid vlan 100 102 untagged
port hybrid pvid vlan 3102
port hybrid protocol-vlan vlan 100 0
port hybrid protocol-vlan vlan 100 4
port hybrid protocol-vlan vlan 102 6
port-isolate enable
#
interface Ten-GigabitEthernet1/1/1
description 49_UPLINK
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 to 148
port trunk pvid vlan 3100
#
Apart from Mikrotik and HPE Comware it seems like HP Aruba, Huawei, D-Link, Netgear, FS.com etc supports protocol-based VLANs.