find ASN in bgp_path

Oleg lego12239 at yandex.ru
Wed Mar 7 14:28:41 CET 2012


On Wed, Mar 07, 2012 at 02:02:34PM +0200, Alexander Shikov wrote:
> Hi,
> 
> On Wed, Mar 07, 2012 at 03:45:58PM +0400, Oleg wrote:
> >   Hello.
> > 
> >   I do the next command from birdc to get routes with special ASN in bgp_path:
> > 
> > bird> show route filter { if ( ASN ~ bgp_path ) then accept; reject; }
> > 
> >   It show me nothing and in syslog i see:
> > 
> > bird: filters, line 1: ~ applied on unknown type pair
> > 
> >   How can i do this in the right way?
> 
> show route where bgp_path ~ [= * ASN * =]

  O, yeah :-). Thanks! I'm stupid.



More information about the Bird-users mailing list