cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
920
Views
0
Helpful
1
Replies

as-path List regular expression

snarayanaraju
Level 4
Level 4

Hi experts,

I am practising AS-PATH regular expression.

To allow any at the end of as-path access-list i found that document saying

*.**

But I tried with _ (meaning any starting, ending, paranthesis ) alone. it is

aslo working fine. Shall i use this instead of .* in lan. Is there any

significant difference is there.

example:

ip as-path access-list 1 deny _300$

ip as-path access-list 1 permit _

Thanks in advance

sairam

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

Hi Sairam,

I think you can use the underscore as the "permit any" without problems. For people more used to classical regular expressions, the ".*" syntax is more readable but the underscore works here as well and I believe that there are almost no efficiency differences between evaluating these two expressions.

Best regards,

Peter

View solution in original post

1 Reply 1

Peter Paluch
Cisco Employee
Cisco Employee

Hi Sairam,

I think you can use the underscore as the "permit any" without problems. For people more used to classical regular expressions, the ".*" syntax is more readable but the underscore works here as well and I believe that there are almost no efficiency differences between evaluating these two expressions.

Best regards,

Peter