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: mich...@winkstreaming.com <mailto:mich...@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 <santi...@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: santi...@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."