Community discussions

MUM Europe 2020
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 543
Joined: Sat Jul 05, 2008 11:50 am

problem scripting address

Wed Jan 09, 2013 10:38 am

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.
rodolfo
IZ0UQV
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 543
Joined: Sat Jul 05, 2008 11:50 am

Re: problem scripting address

Wed Jan 09, 2013 8:24 pm

Put address inside double-quotes:
/ip address
:foreach j in=[find address="10.10.10.2/24"] do={set $j comment=OK}
rodolfo
IZ0UQV

Who is online

Users browsing this forum: No registered users and 65 guests