i have very simple script:
return true/false if IP adress from registration-table is in range from array Ranges
Code: Select all
:local Ranges [:toarray "192.168.1.0/24,192.168.2.0/24"]; \
:foreach i in=[/interface wireless registration-table find] do={ \
:local lastIP [/interface wireless registration-table get $i last-ip]; \
:foreach j in=$Ranges do={ \
:log info ( $lastIP ." je z rozsahu ". $j ." ?"); \
:log info ( $lastIP in $j); \
}; \
};
I tryed
1) lastIp with "/32"
2) convert lastIp :toip
and false false false... any ideas?
PS:sorry form my english