Configuring A Configuration Group - Cisco NCS 5000 Series Manual

System management configuration guide for cisco ncs 5000 series routers
Hide thumbs Also See for NCS 5000 Series:
Table of Contents

Advertisement

Configuring Flexible Command Line Interface
• Overlapping regular expressions within a configuration group for the same configuration are not supported.
• 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.
Note
Flexible CLI configurations are not available through the XML interface.
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.
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
configuration inherits
GigabitEthernet0/0/0/*
configuration group match GigabitEthernet0/0/0/*.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x

Configuring a Configuration Group

or
. Both expressions in the
mtu 1500
mtu 2000
interface
79

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents