Remove Private As Example
Darren Marshall
darren at tuff.org.uk
Mon Feb 20 11:49:24 CET 2017
Hi Ondrej and Michael ,
Many thanks for your support and guidance , greatly appreciated!
Thanks Daz
On 17 February 2017 at 16:04, 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/20170220/c3271271/attachment.html>
More information about the Bird-users
mailing list