BGP regexp, doubt..?!

From: Andy Hogard (andyhogard@gmail.com)
Date: Thu Dec 18 2008 - 04:43:59 ARST


Hi folks,

I just wanted to know whether ^(\([0-9]*_\))?$ <==> ^(\(.+\))?$ ..?! Let
me know what you think, my goal was to prevent a confederated AS from
becoming a transit path, the reg exp that you see on your left is what I
came up with and on the left that's a well know one from the IE blog. To me
both seem to be the same,

I will try and explain in brief here:

(65535 64512 64513) thats how the as path would be like for the routes that
originated within the AS. I need to match these and be able to export these
out to the external AS ..whereas others which have (65535 64512 64513) 100
200 300 must be blocked.

So [0-9] is my atom here, since I can have zero or multiple instances of
these will use it with a *

Hence arrive at [0-9]* , I need to match ( ) which is a special character so
I will use "\", but before that a bracket operation for my atom. And
obviously I will encose them within ^$, as thats what I need in my as path.
My doubt here is that do I have to use [0-9]*_ as my atom or is just [0-9]*
enough to match the blank spaces separating the two intra confed as nos. ya.

Let your thoughts and comments flow

Regards,
Andy.

-- 
My Blog URL: http://ccieno.blogspot.com/

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Thu Jan 01 2009 - 12:53:09 ARST