Hi,
I want to write a default configuration script to configure all SFP+ interfaces of a CRS326-24S±2Q+RM with an access vlan. The plan:
- set pvid=100 for all SFP+ interfaces (check - works)
- add all interfaces with pvid=100 to the bridge vlan interface as untagged (fails
)
The following command gets the interface IDs for all interfaces with pvid 100:
:put [/interface bridge port find where pvid=100]
Another command gets the name of the interface (which is need to be set in the /interface bridge vlan … untagged=INTERFACE-NAME command):
:put [/interface bridge port get 1 vlaue-name=interface]
Each command works fine, but combined they fail with “invalid internal item number”. The goal was to use the list from this command as input for teh /interface bridge vlan … untagged=… command:
:put [/interface bridge port get [/interface bridge port find where pvid=100] vlaue-name=interface]
What do I miss?
:put is added to see the results in the terminal.