Page 1 of 1

problem scripting address

Posted: Wed Jan 09, 2013 10:38 am
by rodolfo
Hi all.

I have this ip address:
/ip address
add address=10.10.10.2/24 comment=SOK disabled=no interface=ether1 network=10.10.10.0

Why this script does not find nothing?
/ip address
:foreach j in=[find address=10.10.10.2/24] do={set $j comment=OK}


Thanks.

Re: problem scripting address

Posted: Wed Jan 09, 2013 8:24 pm
by rodolfo
Put address inside double-quotes:
/ip address
:foreach j in=[find address="10.10.10.2/24"] do={set $j comment=OK}