Remove Private As Example

Ondrej Zajicek santiago at crfreenet.org
Fri Feb 17 17:04:06 CET 2017


On Fri, Feb 17, 2017 at 09:39:09AM -0600, Michael McConnell wrote:
> Hello Daz,
> 
> As far as I know there is no single command equivalent in bird, however you can achieve basically the same by running these commands in a filter
> 
> 
> export filter {
> 	if (source net = 22.23.24.25/23 )  then {
> 		bgp.path.empty;
> 		bgp.path.prepend(22232);
> 		accept;

Hi

Note that it is 'bgp_path', not 'bgp.path'.

Also this filter resets whole bgp_path. If you want just to remove
private ASNs, you could do:

bgp_path.delete([64512..65534, 4200000000..4294967294]);

-- 
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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170217/5b261e44/attachment.asc>


More information about the Bird-users mailing list