Hi Birdies, I've got a good reason to belive that the option 'default bgp_med' is not working (at all), at least in my setup. I do something like this in a filter: export filter { if from = 1.2.3.4 then { print bgp_med; print from; print net; bgp_med = bgp_med + 1; accept; } and I have output like that: 0 1.2.3.4 194.0.2.0/24 0 1.2.3.4 194.0.1.0/24 (void) 1.2.3.4 213.135.40.0/23 (void) 1.2.3.4 213.135.32.0/21 0 1.2.3.4 143.224.0.0/16 => those void's are disturbing, aren't they? Even adding the option default bg_med 10 doesn't change the bgp metric. So I guess I found a bug? I could only work around it by setting the bgp_med in the import filter. Wolfgang -- www.vix.at | www.aco.net wh@univie.ac.at | WH844-RIPE Vienna University Computer Center
On Thu, Nov 19, 2009 at 08:40:44AM +0100, Wolfgang Hennerbichler wrote:
Hi Birdies,
I've got a good reason to belive that the option 'default bgp_med' is not working (at all), at least in my setup. I do something like this in a filter: ... => those void's are disturbing, aren't they?
Even adding the option default bg_med 10 doesn't change the bgp metric. So I guess I found a bug? I could only work around it by setting the bgp_med in the import filter.
default bgp_med works, but in a slightly different way that you expect. It does not mean that it sets bgp_med attribute to that value, it just means that if two BGP routes are compared according to bgp_med than this value is used if one route does not have a bgp_med atrribute. (void) value just means that the route does not have bgp_med attribute. Usual way to set bgp_med attribute is to set it in the export filter. -- 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."
On Nov 19, 2009, at 10:32 , Ondrej Zajicek wrote:
On Thu, Nov 19, 2009 at 08:40:44AM +0100, Wolfgang Hennerbichler wrote:
Hi Birdies,
I've got a good reason to belive that the option 'default bgp_med' is not working (at all), at least in my setup. I do something like this in a filter: ... => those void's are disturbing, aren't they?
Even adding the option default bg_med 10 doesn't change the bgp metric. So I guess I found a bug? I could only work around it by setting the bgp_med in the import filter.
default bgp_med works, but in a slightly different way that you expect. It does not mean that it sets bgp_med attribute to that value, it just means that if two BGP routes are compared according to bgp_med than this value is used if one route does not have a bgp_med atrribute.
(void) value just means that the route does not have bgp_med attribute.
Usual way to set bgp_med attribute is to set it in the export filter.
ah, allright, got it, thanks a lot for the quick answer.
-- 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."
-- www.vix.at | www.aco.net wh@univie.ac.at | WH844-RIPE Vienna University Computer Center
participants (2)
-
Ondrej Zajicek -
Wolfgang Hennerbichler