/ip route find => does not find routing-mark

Hello,

I have two interfaces (ADSL) with dynamic IP and gateway. In order to have a failover mechanism between these two interfaces I want setup a check-gateway failover as described in: http://wiki.mikrotik.com/wiki/Two_gateways_failover

As my two gateways are dynamic I need to change the gateway IPs dynamicly. The Idea now was to write a script which periodicly checks the ADSL GW and configures the route.

My problem now is, that I have a route with a routing-mark=RED_DEFAULT but I can not find the route using “ip route find routing-mark=RED_DEFAULT”. A find for the interface works well.

Example:

[admin@svgateway] /ip route> print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 0   S  dst-address=0.0.0.0/0 gateway=192.168.11.1 interface="" check-gateway=ping gateway-state=unreachable distance=1
        scope=30 target-scope=10 routing-mark=RED_DEFAULT

 1 ADS  dst-address=0.0.0.0/0 gateway=213.191.64.54 interface=RED_Default gateway-state=reachable distance=1 scope=30
        target-scope=10

 2   S  dst-address=0.0.0.0/0 gateway=192.168.11.2 interface="" gateway-state=unreachable distance=2 scope=30 target-scope=10
        routing-mark=RED-BACKUP

 3 ADC  dst-address=84.58.0.1/32 pref-src=84.58.50.211 interface=RED_Backup distance=0 scope=10

 4 ADC  dst-address=192.168.150.0/24 pref-src=192.168.150.1 interface=BLUE_wlan1 distance=0 scope=200

 5 ADC  dst-address=192.168.151.0/24 pref-src=192.168.151.1 interface=BLUE_svhotspot distance=0 scope=200

 6 ADC  dst-address=192.168.168.0/24 pref-src=192.168.168.1 interface=GREEN_ether3 distance=0 scope=10

 7 ADC  dst-address=213.191.64.51/32 pref-src=92.226.211.101 interface=RED_Default distance=0 scope=10
[admin@svgateway] /ip route>
[admin@svgateway] /ip route>
[admin@svgateway] /ip route>
[admin@svgateway] /ip route> :put [find routing-mark=RED_DEFAULT]

[admin@svgateway] /ip route>
[admin@svgateway] /ip route> :put [find interface=RED_Backup]
*42037ca7
[admin@svgateway] /ip route>

Any suggestions? Is this a bug? Is there a better way to do this?

Cheers
Pug

i can’t find routing-mark too on MT 3.10..

[admin@xxxxx] > :put [/ip route find routing-mark=xxx]   

[admin@xxxxx] >

on MT 2.9.46, it works..

[admin@xxxxx] > :put [/ip route find routing-mark=xxx]
*48,*49,*4A,*4B,*4C,*4D,*4E,*4F,*50,*51,*52,*53,*54,*55,*56,*57,*58,*59,*5A,*5B,*5C,*5D,*5E,*5F,*60,*61,*62,*47,*64,*65,*66,*67,*45