Configuring Flexible Command Line Interface
RP/0/RP0/CPU0:router(config-GRP)# router ospf '.*'
RP/0/RP0/CPU0:router(config-GRP-ospf)# nsf cisco
RP/0/RP0/CPU0:router(config-GRP-ospf)# packet-size 3000
RP/0/RP0/CPU0:router(config-GRP-ospf)# end-group
RP/0/RP0/CPU0:router(config)# apply-group g-ospf
The result is effectively this configuration:
router ospf 100
packet-size 1000
nsf cisco
Note that
configuration has precedence.
Compatible Configuration Is Inherited
The configuration in the configuration group must match the configuration on the router to be inherited. If
the configuration does not match, it is not inherited. For example, assume that this configuration is running
on the router:
router ospf 100
auto-cost disable
!
You configure this configuration and commit it to the configuration.
RP/0/RP0/CPU0:router(config)# group g-ospf
RP/0/RP0/CPU0:router(config-GRP)# router ospf '.*'
RP/0/RP0/CPU0:router(config-GRP-ospf)# area '.*'
RP/0/RP0/CPU0:router(config-GRP-ospf-ar)# packet-size 2000
RP/0/RP0/CPU0:router(config-GRP-ospf)# end-group
RP/0/RP0/CPU0:router(config)# apply-group g-ospf
RP/0/RP0/CPU0:router(config)# router ospf 200
RP/0/RP0/CPU0:router(config-ospf)# area 1
The result is effectively this configuration:
router ospf 100
auto-cost disable
router ospf 200
area 1
packet-size 2000
The packet size is inherited by the ospf 200 configuration, but not by the ospf 100 configuration because the
area is not configured.
Layer 2 Transport Configuration Group: Example
This example shows how to configure and apply a configuration group with Layer 2 transport subinterfaces:
RP/0/RP0/CPU0:router(config)# group g-l2trans-if
RP/0/RP0/CPU0:router(config-GRP)# interface 'TenGigE.*\..*' l2transport
RP/0/RP0/CPU0:router(config-GRP)# mtu 1514
RP/0/RP0/CPU0:router(config-GRP)# end-group
RP/0/RP0/CPU0:router(config)# interface TenGigE0/0/0/0.1 l2transport
is not inherited from the configuration group because the explicit local
packet-size 3000
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
Configuration Examples Using Regular Expressions
91