08-21-2007 10:08 PM - edited 03-05-2019 06:01 PM
08-22-2007 12:25 AM
Hi, wlsi
No, the parenthese pair showed up on your question are matacharacters. They have special meaning and will not match the parenthese showed up on the AS-PATH attribute. To match a BGP confederation route which has perenthesis pair in the AS-path attribute, use \( and \) instead. This "\" prior to the "(" and ")" will cancel the special meaning of "(" and ")", and just match the character "(" and ")".
For example, if you want to match the following AS-PATH exactly
(65000)
use the following regular expression
^\(65000\)$
HTH
SSLIN
08-21-2007 10:47 PM
Hi,
This means an AS-PATH coming from AS 4837, and having AS 4837 at least once and then AS 9800.
HTH,
Mohammed Mahmoud.
08-21-2007 10:52 PM
Hi, wlsi
It match those routes with AS-path atrribute which is beginning with one or more 4837s (this means those routes come from AS 4837 and these routes have or have not been manupulated by AS pre-pending), followed by one 9800(this means AS 4837 accepts these routes from AS 9800), then followed by anything (and this means these routes might or might not be originated from AS 9800).
HTH
SSLIN
08-21-2007 11:37 PM
is it possible for a BGP confederation route ?it is also with a pair of ()
08-22-2007 12:25 AM
Hi, wlsi
No, the parenthese pair showed up on your question are matacharacters. They have special meaning and will not match the parenthese showed up on the AS-PATH attribute. To match a BGP confederation route which has perenthesis pair in the AS-path attribute, use \( and \) instead. This "\" prior to the "(" and ")" will cancel the special meaning of "(" and ")", and just match the character "(" and ")".
For example, if you want to match the following AS-PATH exactly
(65000)
use the following regular expression
^\(65000\)$
HTH
SSLIN
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide