adding MED to + bgp_med

Ondrej Zajicek santiago at crfreenet.org
Thu Jun 6 05:25:26 CEST 2019


On Wed, Jun 05, 2019 at 11:30:25PM +0200, Łukasz Trąbiński wrote:
> 
> Hi again
> 
> I answer myself. "bgp_med = bgp_med + 100” works only when "rs client” is set. Is it feature or bug?

Hi

It works the same in 1.6.4 and 1.6.6. But you are right that it does not
on regular EBGP sessions. That is a feature, as MED received from one AS
should not be propagated to another AS, therefore BIRD resets it before
BGP export filter (and new MED should be set there, if it is needed).

In BIRD 2.0, the behavior is slightly different - we do not reset MED
before export filter, but after export filter and only if it was not
modified in the filter. Therefore, your example would work there.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."



More information about the Bird-users mailing list