The array content is being replaced by the last element.
Code: Select all
:global interfaces;
:foreach i in=[/interface bridge port find where pvid=80] do={
:local bport [interface bridge port get number=$i];
:put ("$bport"->"interface");
:set $interfaces ($interfaces $bport);
}
:put $interfaces;
I really hope that someone can help me find out the reason why this isn't working properly.