The same vif tag on multiple interfaces with different addresses, how is this even possible?

Hi.
I was going to set up a second vlan today and just for kicks tried to see if the following config would work. I’d assume it shouldn’t since now how does the system know which iinterface corresponds to tag 2?

show interfaces
 bridge br0 {
     address 192.168.2.1/24
     description lan
     member {
         interface eth1 {
         }
         interface eth2 {
         }
         interface eth3 {
         }
     }
     vif 2 {
         address 192.168.3.1/24
     }
 }
 ethernet eth3 {
     hw-id 00:e0:67:09:a1:4f
     vif 2 {
         address 10.0.0.1/24
         description "dmz for vms"
         policy {
             route wireguard
         }
     }
 }

Can anyone explain this?
(edit), i’m using vyos 1.3-rc4

vlan tag is only local significant, on the interface you defined it on.
Scope of this tag is layer2 domain of its interface

You’re assigning L3 addresses to (sub)interface eth3, which you shouldn’t do as eth3 is connected to bridge.
Although this answers the question why you shouldn’t do this , not what will happen

Thank you for the clarification. That helps a lot!