Is there a good way to add multiple vlans to an interface instead interface to the vlan?

That syntactic sugar is actually want makes automating this so tough! It’s actually an array in scripting (thus config) – & even Excel PivotTable have trouble where a “cell” is a list.

@pcunite highlighted the underlying problem here, 2021:

Which is gap in scripting, since there is not primitive operation to add a value to a list/array attribute like vlan-ids. So these “vlan-ids” LIST make this a very hard problem in config to solve without some “find/insert into attribute” operation.

While I have some scripts here that operate on the “pivoted” view of the bridge, and maybe they help in your case IDK:

And have an initial “TUI” for dealing with bridge (now with 1000+ VLANs, it does not page them, yet), but it VERY difficult to visual what’s happening inside /interface/bridge/vlan. So I wrote this to show it like Excel PivotTable:


(what that’s missing is commands to operate on the “rows” or “columns” of each, it just shows them today)