[j-nsp] set MED only on empty

Eduardo Schoedler listas at esds.com.br
Sat Sep 19 15:12:48 EDT 2020


Hi Baldur,

Try match metric, with some tests you can define empty (maybe zero?).

https://www.juniper.net/documentation/en_US/junos/topics/usage-guidelines/policy-configuring-match-conditions-in-routing-policy-terms.html



Regards.


Em sáb., 19 de set. de 2020 às 12:59, Baldur Norddahl <baldur at gigabit.dk>
escreveu:

> Hello
>
>
>
> I want to set MED (metric) only when the peer did not specify a MED value.
>
> The idea being that peers that set MED have a reason for their choice, but
>
> if no MED value is set, I am going to set it to MED=(latency_to_peer_in_ms
>
> + 1000). That way we will prefer the route with lowest latency.
>
>
>
> But I can not figure out how to match on no MED value in a policy. There
>
> must be a way to do this?
>
>
>
> Thanks,
>
>
>
> Baldur
>
> _______________________________________________
>
> juniper-nsp mailing list juniper-nsp at puck.nether.net
>
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>
> --
Eduardo Schoedler


More information about the juniper-nsp mailing list