route filter by bgp_path

Ondrej Zajicek santiago at crfreenet.org
Tue Feb 27 00:35:47 CET 2018


On Mon, Feb 26, 2018 at 01:44:55PM +0800, 彭勇 wrote:
> i would like to filter route which last as is 4134 or the second last
> AS is 4134.
> 
> the following command only show second last AS is 4134:
> 
> show route where (bgp_path ~ [= * 4134 ? =]
> 
> 
> how can i do it?

I don't think this could be done by one BGP path pattern,
but you could use or: 

(bgp_path ~ [= * 4134 =]) || (bgp_path ~ [= * 4134 ? =])

-- 
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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180227/96efcd08/attachment.sig>


More information about the Bird-users mailing list