Hi Ondrej,
Thanks for getting back. Yes, this would only affect routes that are propagated to eBGP peers. So when a route is propagated from a true eBGP peer to an internal eBGP peer, then the MED value would be preserved. This is useful for networks where you have eBGP peers and would still like to preserve the MED attribute beyond AS boundaries.
Although we are not aware of Cisco/Juniper having this option, this RFC on MED considerations mentions such behavior:
https://tools.ietf.org/html/rfc4451#section-3.3. Thanks for the suggestion on using export filters to set this attribute. For our use case, it feels simpler to enable a knob for this, but we will test using export filters for this.
Thanks,
Trisha
--Trisha Biswas | Sr. Software Engineer, Network Systems