Re: could you explain to me about bgp Regular expression

From: Miguel Trejo (mike.trejo@gmail.com)
Date: Thu Jul 05 2007 - 21:30:22 ART


I agree to the two previous comments, but the second repetition gets * and
not +, so it's zero or more repetitions of the first AS. However the first
one symbol is ^ so it has to start with the first match.

So my interpretation is accept any route that has the same AS along all the
AS path no matter if that AS is one or more times. The key thing is only one
AS should appear. So another interpretation is accept routes that originated
on the AS itself with no routes learned through transit ASes.

m2c

On 7/4/07, Vijay babu <dotcomvijay@gmail.com> wrote:
>
> Yes, you are right.
>
> On 7/4/07, Marko Milivojevic <markom@vodafone.is> wrote:
> >
> > > ^([0-9]+)(_\1)*$
> > >
> > > This AS path list selects updates from the neighboring AS (with 2
> > digits)
> > > and with 0 or more repetions of itself.
> >
> > It is not constrained to two digits only. Regex "+" parameter just
> states
> > that previous item can match "one or more times". To constrain match to
> > two
> > digits only, other form must used. It would look like this: "[0-9]{2}?".
> > As
> > far as I am aware, IOS doesn't support {n} limiter.
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Sat Aug 18 2007 - 08:17:40 ART