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: 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."
signature.asc
Description: PGP signature