Remove Private As Example

Michael McConnell michael at winkstreaming.com
Fri Feb 17 20:14:21 CET 2017


Thanks for that one, we always just delete .empty as our we never “span” private ASNs, only have them as origins, but very cool stuff. 

Thanks Ondrej!

--
Michael McConnell
WINK Streaming;
email: michael at winkstreaming.com <mailto:michael at winkstreaming.com>
phone: +1 312 281-5433 x 7400
cell: +506 8706-2389
skype: wink-michael
web: http://winkstreaming.com <http://winkstreaming.com/>
> On Feb 17, 2017, at 10:04 AM, Ondrej Zajicek <santiago at crfreenet.org> wrote:
> 
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170217/99f47e4b/attachment.html>


More information about the Bird-users mailing list