Configuration Examples Using Regular Expressions
apply-group g-isis-gige
!
!
interface GigabitEthernet0/0/0/2
apply-group g-isis-gige
!
!
interface GigabitEthernet0/0/0/3
apply-group g-isis-gige
!
!
In this situation, only the interfaces to which you apply the configuration group inherit the configuration.
The second way to configure these interfaces using the configuration group is to apply the configuration group
within the router isis configuration, as shown here:
router isis green
apply-group g-isis-gige
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/1
!
interface GigabitEthernet0/0/0/2
!
interface GigabitEthernet0/0/0/3
!
!
In this way, any other Gigabit Ethernet interfaces that you configure in the ISIS green configuration also
inherit these configurations.
The third way to configure these interfaces using the configuration group is to apply the group at the global
level as shown here:
apply-group g-isis-gige
router isis green
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/1
!
interface GigabitEthernet0/0/0/2
!
interface GigabitEthernet0/0/0/3
!
!
In this example, the configuration of the group is applied to all Gigabit Ethernet interfaces configured for
ISIS.
Configuration Group Inheritance with Regular Expressions: Example
Local Configuration Has Precedence Over Configuration Group
An explicit configuration takes precedence over a configuration applied from a configuration group. For
example, assume that this configuration is running on the router:
router ospf 100
packet-size 1000
!
You configure this configuration group, apply it, and commit it to the configuration.
RP/0/RP0/CPU0:router(config)# group g-ospf
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
90
Configuring Flexible Command Line Interface