Tue Apr 07, 2015 1:26 am
Maybe they should add a new action in the /ip route "folder" - something like:
/ip route lookup 12.34.56.192{/mask}
If no mask or /32 mask is specified, it should return the exact route that would be used to reach 12.34.56.192.
(or multiples if ECM routes)
If a valid mask is specified, then only routes of that exact prefix should be returned (if any exist in the routing table)
If mask is /0 is specified, a list of all matching prefixes in the routing table which include the target should be returned.
Routes returned by 'lookup' should have all of the usual attributes that routes returned by 'find' have - protocol, distance, next hop, etc - so you could still use get/set/where, etc.
Of course Winbox would need a nice query window for this functionality, with checkboxes for OSPF, BGP, etc....