Community discussions

MUM Europe 2020
 
pkelly1603
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Mon Jun 15, 2009 11:13 pm

API issue with getting static route information

Fri Aug 03, 2012 7:22 pm

I am trying to pull routes off a RouterOS device with the API. The API can not read routing marks and can not read check-gateway on these routes.

Here is the output when I do an export:
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=4.2.2.2/32 gateway=\
80.8.8.8 pref-src=0.0.0.1 routing-mark=ab scope=30 target-scope=10

Here is the output when I do a "getall" with the API:
!re=.id=*1=dst-address=4.2.2.2/32=pref-src=0.0.0.1=gateway=80.8.8.8=gateway-sta
us=80.8.8.8 unreachable=distance=1=active=false=static=true=disabled=false


Is this a known problem?
 
pkelly1603
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Mon Jun 15, 2009 11:13 pm

Re: API issue with getting static route information

Fri Aug 03, 2012 8:39 pm

It doesn't support route type or vrf-interface either apparently

Who is online

Users browsing this forum: No registered users and 20 guests