Dear BIRD-Users, I'm currently investigating if it's possible to do as-path prepending in bird in filters or pipes. What I could find was this: bgppath BGP path is a list of autonomous system numbers. You can't write literals of this type. too bad. The goal would be to be able to do a prepending per peer within a pipe or filter. Does Anybody know if this is possible? Wolfgang -- www.vix.at | www.aco.net wh@univie.ac.at | WH844-RIPE Vienna University Computer Center
On Thu, Sep 17, 2009 at 11:09:22AM +0200, Wolfgang Hennerbichler wrote:
Dear BIRD-Users,
I'm currently investigating if it's possible to do as-path prepending in bird in filters or pipes. .. too bad. The goal would be to be able to do a prepending per peer within a pipe or filter. Does Anybody know if this is possible?
You can use bgp_path.prepend() in filters. See the first example on page http://bird.network.cz/?get_doc&f=bird-6.html . -- 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 17.9.2009 11:09, Wolfgang Hennerbichler wrote:
Dear BIRD-Users,
I'm currently investigating if it's possible to do as-path prepending in bird in filters or pipes. What I could find was this: bgppath BGP path is a list of autonomous system numbers. You can't write literals of this type.
Use e.g. this: export filter { if source = RTS_STATIC then { bgp_path.prepend(65000); accept; } reject; };
too bad. The goal would be to be able to do a prepending per peer within a pipe or filter. Does Anybody know if this is possible?
Ondrej
Wolfgang
On 17.09.2009, at 11:37, Ondrej Filip wrote:
On 17.9.2009 11:09, Wolfgang Hennerbichler wrote:
Dear BIRD-Users,
I'm currently investigating if it's possible to do as-path prepending in bird in filters or pipes. What I could find was this: bgppath BGP path is a list of autonomous system numbers. You can't write literals of this type.
Use e.g. this:
export filter { if source = RTS_STATIC then { bgp_path.prepend(65000); accept; } reject; };
Ah, thanks a lot! Should have done more reading...
too bad. The goal would be to be able to do a prepending per peer within a pipe or filter. Does Anybody know if this is possible?
Ondrej
Wolfgang
-- www.vix.at | www.aco.net wh@univie.ac.at | WH844-RIPE Vienna University Computer Center
participants (3)
-
Ondrej Filip -
Ondrej Zajicek -
Wolfgang Hennerbichler