Re: BGP AS-PATH

From: Hobbs (deadheadblues@gmail.com)
Date: Sun Jan 18 2009 - 16:06:03 ARST


That is good explanation. Sometimes with a question like this there are more
than on answer. If you put ? around the [0-9]+ in the first example it would
work

^100_([0-9]+)?$

But of course that's that more to type. I guess the thing to remember is
there more than one way...

On Sun, Jan 18, 2009 at 10:52 AM, Yandy Ramirez <yandyr@gmail.com> wrote:

> you have to look at it this way. Do you want to match 100 by itself and 100
> plus its directly connected customers? or just 100 and its directly
> connected customers? the "+" matches "one plus more occurrences of the
> preceding match" the "*" matches "zero or more occurrences of the preceding
> match".
>
> So ^100_[0-9]+$ matches -- 100 200, 100 300 and so on, but will not match
> just "100" by itself.
> so ^100_[0-9]*$ matches -- 100, 100 200, 100 300 and so on, plus the first
> match of 100 by itself.
>
> Hope that helps
>
>
> ------
> yandy
>
>
> On Sat, Jan 17, 2009 at 11:57 PM, CiSco Champ <cischamp2009@gmail.com
> >wrote:
>
> > Hi Group,
> >
> > if my requirement to configure as-path that match directly connected AS
> and
> > its neighboring, then which one is right between below:
> >
> > ^100_([0-9]+)$
> > or
> > ^100_[0-9]*$
> >
> > Waiting correction from you
> >
> > Regards
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

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



This archive was generated by hypermail 2.1.4 : Sun Mar 01 2009 - 09:43:38 ARST