On Thu, Mar 28, 2019 at 12:25:29AM +0100, Robert Scheck wrote:
Hello Maria, hello Alexander,
first of all, thank you very much for your suggestions.
On Tue, 26 Mar 2019, Maria Matějka wrote:
Did you try using BGP path mask? Like if (bgp.path ~ [= ? bogon bogon * =]) …
I didn't try this before, but I'm now also not sure how I could get my int set (BOGON_ASNS) properly into your example, because just
That is unfortuately not possible (only single ASNs or ASN ranges), although it is a thing that makes perfect sense, so we should implement it.
On March 26, 2019 10:34:39 AM GMT+01:00, Alexander Zubkov <green@qrator.net> wrote: 1 (rather "undefined" or failing). It starts to work properly when using
if (bgp_path.len >= 2 && delete(bgp_path, [ AS-TRANSIT1, AS-TRANSIT2 ]).first ~ BOGON_ASNS) then { …
but it still leaves me with a list of transit ASNs to be fed (thus Maria's suggestion seems to be a more maintenance-friendly approach - if int sets could be used somehow).
What about: delete(bgp_path, bgp_path.first).first ? -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@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."