adding MED to + bgp_med
Hello In my configuration I export policy function like this: if (yyyyy,xxxxx) ~ bgp_community && (defined (bgp_med)) then { bgp_med = bgp_med + 100; accept; } It worked well in 1.6.4 if the prefix was set community yyyyy,xxxxx and med was set to for example = 20, med was set to 120 in export bgp session. In version 1.6.6 it looks like it does not work, med is set = 100. Something was changed beetwen versions? Maybe it’s a bug? Łukasz Trąbiński
Hi again I answer myself. "bgp_med = bgp_med + 100” works only when "rs client” is set. Is it feature or bug?
Wiadomość napisana przez Łukasz Trąbiński <lukasz@trabinski.net> w dniu 05.06.2019, o godz. 16:02:
Hello
In my configuration I export policy function like this:
if (yyyyy,xxxxx) ~ bgp_community && (defined (bgp_med)) then { bgp_med = bgp_med + 100; accept; }
It worked well in 1.6.4
if the prefix was set community yyyyy,xxxxx and med was set to for example = 20, med was set to 120 in export bgp session. In version 1.6.6 it looks like it does not work, med is set = 100. Something was changed beetwen versions? Maybe it’s a bug?
Łukasz Trąbiński
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@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."
participants (2)
-
Ondrej Zajicek -
Łukasz Trąbiński