Re: [nsp] bgp regexp

From: Dimitri Sidelnikov (sid@free.net)
Date: Thu Sep 17 1998 - 01:17:18 EDT


According to Jon Lewis
>
> I'm fine tuning some of my BGP route maps and wanted to have an ip as-path
> filter with a line like:
>
> ip as-path access-list 10 permit _10674_([0-9]+)?$
>
> According to
> http://www.cisco.com/univercd/cc/td/doc/product/software/ios11/pbook/papregxp.htm
>
> ? Matches 0 or 1 occurrences of the pattern.
>
> However, ? is special to IOS's CLI meaning "show me how I might complete
> the current command" and I can't seem to enter a ? in a regexp in either
> exec mode or config mode. Is there some trick? I've tried playing with
> \? '?' "?" and a few other variations without success.

You have to preceed "special" for CLI symbols by CTRL-V, so that to enter
symbol "?" from the command line, you press CTRL-V and only then you press
"?". When configuring from TFTP server there is no interpretation for CLI
"special" symbols. Hence in configuration file on TFTP server you must not
use CTRL-V.

Hope this helps.

Regards,

---
Dimitri I. Sidelnikov
FREEnet Hostmaster



This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:13:18 EDT