Adding a new interface/trunk port to 500+ vlans

Hi,

let’s assume one has a ton of vlans per switch and we want to add a new port to as trunk port. We usually don’t put the untagged ports into /interface bridge vlan as they are added automagically by the pvid set on the access port. Our config looks like this:

/interface bridge vlan
add bridge=bridge tagged=ether7,ether8 vlan-ids=2
add bridge=bridge tagged=ether7,ether8 vlan-ids=3
add bridge=bridge tagged=ether7,ether8 vlan-ids=4
...

If I want to add ether6 to the list I have to now edit 500+ entries. A loop won’t work for me since in the end this is not sth I want to achieve through the commandline/scripting option but through ansible. So I’m looking for a config option here. Any ideas?

Thanks in advance,
Mischa

This has been solved by introducing interface-lists to bridge vlans in 7.17:

*) bridge - added interface-list support for VLANs;

@supervisor of mischa01101 - MT has reduced the hours you are required to pay mischa01101 and the cost of trips to sites. :slight_smile: