Regular Expressions In Configuration Groups - Cisco ASR 9000 Series User Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Regular Expressions in Configuration Groups

Case 2
In the case when all these groups (mentioned above) have same (common) configuration, group one will be
active. The
Regular Expressions in Configuration Groups
Regular expressions are used in configuration groups to make them widely applicable. Portable Operating
System Interface for UNIX (POSIX) 1003.2 regular expressions are supported in the names of configuration
statements. Single quotes must be used to delimit a regular expression.
For general information regarding regular expressions, refer to the Understanding Regular Expressions,
Special Characters, and Patterns module in the Cisco ASR 9000 Series Aggregation Services Router Getting
Started Guide.
Not all POSIX regular expressions are supported. Refer to
Note
130
Regular Expressions for Interface Identifiers
Configuration groups do not accept exact interface identifiers. You must use a regular expression to identify
a group of interfaces that are applicable to the configuration group. The regular expression '.*' is not allowed.
You must begin the regular expression for an interface identifier with an unambiguous word, followed by the
regular expression. For example, to configure Gigabit Ethernet interfaces, use the regular expression
'GigabitEthernet.*'.
To display a list of available interface types for your router configuration, enter interface ? at the configuration
group prompt:
RP/0/RSP0/CPU0:router(config-GRP)# interface ?
ATM
BVI
Bundle-Ether
Bundle-POS
GigabitEthernet
IMA
Loopback
MgmtEth
Multilink
Null
POS
PW-Ether
PW-IW
Serial
tunnel-ip
tunnel-mte
tunnel-te
tunnel-tp
Although you are required to enter only enough characters for the interface type to be unique, it is
Note
recommended that you enter the entire phrase. All interface types used in regular expressions are
case-sensitive.
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
136
apply-group ONE TWO
for more information.
'RegExp': ATM Network Interface(s)
'RegExp': Bridge-Group Virtual Interface
'RegExp': Aggregated Ethernet interface(s)
'RegExp': Aggregated POS interface(s)
'RegExp': GigabitEthernet/IEEE 802.3 interface(s)
'RegExp': ATM Network Interface(s)
'RegExp': Loopback interface(s)
'RegExp': Ethernet/IEEE 802.3 interface(s)
'RegExp': Multilink network interface(s)
'RegExp': Null interface
'RegExp': Packet over SONET/SDH network interface(s)
'RegExp': PWHE Ethernet Interface
'RegExp': PWHE VC11 IP Interworking Interface
'RegExp': Serial network interface(s)
'RegExp': GRE/IPinIP Tunnel Interface(s)
'RegExp': MPLS Traffic Engineering P2MP Tunnel interface(s)
'RegExp': MPLS Traffic Engineering Tunnel interface(s)
'RegExp': MPLS Transport Protocol Tunnel interface
Configuring Flexible Command Line Interface Configuration Groups
will be active. If group ONE is deleted then group TWO will be active.
Flexible Configuration Restrictions, on page

Advertisement

Table of Contents
loading

Table of Contents