How can I do it?
Following script is only my suggestion, but it doesnt work.
variable "pole" should be array.
Code: Select all
{
:local pole # I want variable "pole" to be an array of mac addresses.
:local filtermac
:local i
:local j
:local fpravidla [/ip firewall filter find]
:set i 0
:foreach j in $fpravidla do={
:set filtermac [/ip firewall filter get $j value-name=src-mac-address]
:set i ($i+1)
:set pole[$i] $filtermac # how can I write this?
}
}