bgppath.filter question - modifying AS_PATH
Javor Kliachev
jkliachev at neterra.net
Tue Dec 17 13:52:09 CET 2013
Hello,
We use BIRD as Route Server.
According your documentation we would like to know how given AS_PATH can
be modified for example:
To delete ALL ASNs from given AS_PATH except one AS predefined in int set.
Here is my example config:
function filter_bgp_as_path()
int set remove_as;
{
remove_as = [ 50 ];
bgp_path.filter(remove_as);
return true;
}
table T65533
protocol pipe P65533 from PIPES {
description "TEST";
peer table T65533;
export all;
}
protocol bgp R65533x1 from PEERS {
source address 10.0.0.200;
description "TEST";
neighbor 10.79.2.2 as 65533;
multihop;
import none;
export where filter_bgp_as_path();
table T65533;
passive off;
}
After running "birdc configure" I see in bird.log to return the
following error:
17-12-2013 14:44:47 <ERR> filters, line 8: Can't add/delete to non-(e)clist
17-12-2013 14:44:47 <ERR> filters, line 8: Can't add/delete to non-(e)clist
17-12-2013 14:44:47 <ERR> filters, line 8: Can't add/delete to non-(e)clist
Could you please point me in the right direction ? Is it possible at all
to modify AS_PATH attribute?
Thanks in advance!
Best~
--
---
Find out about our new Cloud service - Cloudware.bg
<http://cloudware.bg/?utm_source=email&utm_medium=signature&utm_content=link&utm_campaign=newwebsite>
Access anywhere. Manage it yourself. Pay as you go.
------------------------------------------------------------------------
*Javor Kliachev*
IP Engineer
Neterra Ltd.
Telephone: +359 2 975 16 16
Fax: +359 2 975 34 36
www.neterra.net <http://www.neterra.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20131217/26a4fb2d/attachment.html>
More information about the Bird-users
mailing list