There is a floor for MED and it is 0.
What You could do is :

term 1 then { metric subtract 1000; next term }
term 2 from metric 0; then { local-preference 100; accept }

You won't be able to keep the original MED though :-(
HTH
Thanks
Alex

On 27/08/2015 05:40, Mark Tinka wrote:

On 27/Aug/15 01:55, Phil Rosenthal wrote:

Hello all,

On Cisco, it is possible to write a route policy as such:

route-policy test
     if med le 1000 then
     set local-preference 100
   endif
   end-policy

Is there any way to do the same thing with Juniper? It seems that the “from metric” 
statement only accepts a static value (comparable to "if med eq 1000”).
I've never used metric as a match condition in anything, but from what I
can see in Junos, the value needs to be absolute.

Of course, you can have as many terms as you want matching various
metric values, but this is not as elegant as the IOS XR one, I suppose.

Mark.
_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp

_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to