I’m a little bit confused. We have some CRS354 Switches where we are operatinge multiple VLANs with VLAN-filtering enabled. We have at least two trunk ports per switch for uplink/downlink. There are also multiple vmWare hosts connected to multiple ports. These are also configured as trunk ports but only with a subset of all VLANs.
Common operations would be:
A: Adding a new VLAN by copying the configuration of another VLAN
B: Adding a new vmWare host port to the switch copying configuration from another port
I do not want to do this with winbox.
A is relative simple.
/interface bridge vlan add bridge=bridge vlan-ids=989 tagged="$[get [find vlan-ids=30] tagged]"
But I can’t figure out how to do this in case B.
I have to change all VLANs that should belong to the new port and append the port to their configuration.
I did somethin like this to add the interface to a single VLAN. But how do i add the interface to multiple VLANs at once? Do I need a for loop or can I do this in one line?
/interface bridge vlan set [find vlan-ids=989] tagged=([get [find vlan-ids=989] tagged], "ether20")