find ASN in bgp_path

Alexander Shikov a.shikov at dtel-ix.net
Wed Mar 7 13:02:34 CET 2012


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 * =]

-- 
Alexander Shikov
Technical Staff, Digital Telecom IX




More information about the Bird-users mailing list