Community discussions

MikroTik App
 
bearmeister
just joined
Topic Author
Posts: 17
Joined: Tue Apr 09, 2013 6:47 am

Gather result via API where X in dst-address

Wed Aug 23, 2017 8:09 am

Hi All,

Is there a way to return data that is gathered with "in" ?

For example ;
I have no problem with returning data where dst-address is value
/ip route print where dst-address ="23.246.28.0/24"
Using something like : $api->query('/ip/route/print', { '.proplist' => '.id,gateway' }, { 'dst-address' => $prefix });

But how to return data via API where value in dst-address ?
/ip route print where 23.246.28.0/24 in dst-address

I have tried all manner of things, but I can't seem to get it right.

Thank you
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Gather result via API where X in dst-address

Wed Aug 23, 2017 12:42 pm

Who is online

Users browsing this forum: No registered users and 80 guests