Is there any other solution to prefer a bgp route if weight local_pref and AS_PATH length is equal? AFAIK is cisco, brocade and juniper doing it with local MED even if the neighboring AS in AS_PATH is NOT equal as long as the AS_PATH length is the same.
Prepending or Communities can give you the option to prefer a specific patch inbound across different AS peers.
You can also attempt to write a script to approximate conditional BGP advertisements (cisco BGP feature) which guarantees traffic will come in on a certain path.
thanks for your reply and your suggestions. It’s a bit sad that this does not work on routeOS as this is working on all other routers I know.
I will try your suggestions.
MED is an optional non-transitive attribute so it is not passed (say) from AS #1 by AS #2 to AS #3. Thus it would not really make sense to interpret and act on MED values from two distinct AS sources in eBGP. Thus the restriction mentioned in the thread you quoted. The same restriction applies for eBGP on Cisco routers.