I use ansible to config my ROS 7.11.2 switch. I want to have some trunks and bonds with several tagged vlans. Also some access ports with an untagged vlan.
In my script I add every vlan apart to a port/bond. Example:
The consequence of this, that there are many lines in “/interface/bridge/vlan/print”. For every vlan, per interface on the bridge.
There will be some equal lines eg:
14 bridge 10
15 bridge 10
16 bridge 10
Every line is for an other interface. The print does not show it, but in winbox you can see it.
If I was a human user, I would aggregate it, like:
/interface/bridge/vlan add bridge=bridge untagged=ether1,ether2,ether3 vlan-ids=10
In a program, it is easier to do it like above.
Does this matter ? Does ROS aggregated the requested config into an internal tabel/config ?