Cisco NCS 5000 Series Manual page 98

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

Advertisement

Regular Expressions in Configuration Groups
snmp-server vrf vrf100
!
Any change in a regular expression with lower priority will not affect the inheritance.
Any changes made to an existing regular expression, which is of less (non-top) priority, it will not have any
effect on the inheritance.
snmp-server vrf '[\w]+'
host 2.2.2.2 traps version 2c group_2
host 2.2.2.2 informs version 2c group_2
context group_2
The expression with the higher priority gets inherited, as shown below:
group FB_flexi_snmp
snmp-server vrf '.*'
host 1.1.1.1 traps version 2c group_1
host 1.1.1.1 informs version 2c group_1
context group_1
Apply Groups Priority Inheritance
Priority governs inheritance.
Apply groups priority inheritance helps flexible configuration groups to handle common configuration
statements between groups. When multiple configuration groups have common configuration statements, the
inheritance priority is such that the configuration statements present in inner groups have precedence over
those configuration statements present in outer groups. In case of tiebreakers, the priority is assigned in
accordance to the lexicographical order of regular expressions. User defined order of commands are not
accepted.
For example, a configuration statement in configuration group ONE has precedence over another group. A
configuration statement in configuration group SEVEN is used only if it does not exist in any other group.
Within a configuration group, inheritance priority is the longest match.
apply-group SIX SEVEN
router ospf 0
apply-group FOUR FIVE
area 0
apply-group THREE
interface GigabitEthernet 0/0/0/0
apply-group ONE TWO
!
!
!
The above example shows two scenarios. The inner most group (apply-group ONE TWO) has the highest
priority.
Case 1
The first scenario shows which group gets the priority. The example states which group is applied between
different configuration groups (different groups with nothing in common). While applying group one (ONE
TWO), all the seven groups matches the interface
Case 2
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
88
Configuring Flexible Command Line Interface
interface GigabitEthernet 0/0/0/0
- is applied.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents