Adding a new interface/trunk port to 500+ vlans
Posted: Wed Feb 08, 2023 12:36 pm
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:
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
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:
Code: Select all
/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
...
Thanks in advance,
Mischa