Re: Second opinion on Regular Expression [7:24460]

2001-10-28 Thread Julian Eccli
Chuck, You need to make the deny '^ .*'. Assuming you are putting this on an EBGP router peering with AS. "ip as-path access-list 55 deny ^ .*" The '^' is an anchor in regex and forces a match at the beginning of the input string you are comparing. IE: Whatever is after the '^' m

Re: Second opinion on Regular Expression [7:24460]

2001-10-29 Thread jinge
It is no need test...the as-path-accesslist of chunk is doing what you want.. it is no problem by my practise.. - Original Message - From: "Julian Eccli" To: Sent: Monday, October 29, 2001 3:40 PM Subject: Re: Second opinion on Regular Expression [7:24460] > Chuck, >

Re: Second opinion on Regular Expression [7:24460]

2001-10-29 Thread John Neiberger
You are correct. The ^ character symbolizes the beginning of the AS path so you're as-path access list looks like it should work exactly as you think. I'm not aware of the ^ having any other meaning in this context. I used to have a link on regular expressions but I can't seem to find it. If I

Re: Second opinion on Regular Expression [7:24460]

2001-10-29 Thread MADMAN
I'll save ya the trouble John: http://www.cisco.com/univercd/cc/td/doc/product/atm/c8540/12_0/13_19/cmd_ref/appc.htm Dave John Neiberger wrote: > > You are correct. The ^ character symbolizes the beginning of the AS > path so you're as-path access list looks like it should work exactly as > y

Re: Second opinion on Regular Expression [7:24460]

2001-10-29 Thread John Neiberger
Interestingly, that link has the precise example that Chuck is looking for and it--like Julian--recommends adding the " .*" to the access list. I just did a "show ip bgp regexp" on one of our routers and didn't see any difference between the following: show ip bgp regexp $1239 .* show ip bgp re

RE: Second opinion on Regular Expression [7:24460]

2001-10-30 Thread Chuck Larrieu
opinion on Regular Expression [7:24460] Chuck, You need to make the deny '^ .*'. Assuming you are putting this on an EBGP router peering with AS. "ip as-path access-list 55 deny ^ .*" The '^' is an anchor in regex and forces a match at the beginni

RE: Second opinion on Regular Expression [7:24460]

2001-10-30 Thread Chuck Larrieu
n the AS Path list. this means the .* HTH Chuck -Original Message- From: John Neiberger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 30, 2001 7:12 PM To: Chuck Larrieu; [EMAIL PROTECTED] Subject: RE: Second opinion on Regular Expression [7:24460] This is interesting. I was wond

RE: Second opinion on Regular Expression [7:24460]

2001-10-31 Thread John Neiberger
tries in the AS Path list. this means the .* | | HTH | | Chuck | | -Original Message- | From: John Neiberger [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, October 30, 2001 7:12 PM | To: Chuck Larrieu; [EMAIL PROTECTED] | Subject: RE: Second opinion on Regular Expression [7:

RE: Second opinion on Regular Expression [7:24460]

2001-10-31 Thread Chuck Larrieu
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 30, 2001 7:12 PM To: Chuck Larrieu; [EMAIL PROTECTED] Subject: RE: Second opinion on Regular Expression [7:24460] This is interesting. I was wondering about the addition of the .* to the access list. When I tested this using "show ip bgp

Re: Second opinion on Regular Expression [7:24460]

2001-10-31 Thread Julian Eccli
> ^1239_ would match any route coming from AS1239 *including* routes > originated in AS1239. This is because the underscore can match any > character including whitespace and the $ end-of-path anchor. > Probably work in show command but not in the IOS policy. At the very least the '^1239_' is v

Re: Second opinion on Regular Expression [7:24460]

2001-11-01 Thread John Neiberger
In all of the examples I mentioned I could have included output from our router to show what I was seeing but I didn't in the interest of brevity. Perhaps the particular show command I was using is a little looser in its matching than other elements of IOS would be. Also, I think we're using dif