•
Overlapping regular expressions within a configuration group for the same configuration are not supported.
For example:
group G-INTERFACE
interface 'gig.*a.*'
mtu 1500
!
interface 'gig.*e.* '
mtu 2000
!
end-group
interface gigabitethernet0/0/0/* ---- where * is 0 to 79 or 0 to 39
apply-group G-INTERFACE
This configuration is not permitted because it cannot be determined whether the
interface
GigabitEthernet0/0/0/*
configuration inherits
mtu 1500
or
mtu 2000
. Both expressions in the
configuration group match GigabitEthernet0/0/0/*.
•
Up to eight configuration groups are permitted on one apply-group command.
Configuring a Configuration Group
A configuration group includes a series of configuration statements that can be used in multiple hierarchical
levels in the router configuration tree. By using regular expressions in a configuration group, you can create
generic commands that can be applied in multiple instances.
Use this task to create and use a configuration group.
Flexible CLI configurations are not available through the XML interface.
Note
SUMMARY STEPS
1.
configure
2.
group group-name
3.
Enter configuration commands, starting from global configuration mode. Use regular expressions for
interface names and other variable instances.
4.
end-group
5.
apply-group
DETAILED STEPS
Step 1
configure
Step 2
group group-name
Example:
RP/0/RP0/CPU0:router(config)#
group g-interf
Specifies a name for a configuration group and enters group configuration mode to define the group.The
group-name
argument can have up to 32 characters and cannot contain any special characters.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
79
Configuring Flexible Command Line Interface
Configuring a Configuration Group