EasyManuals Logo

Cisco NCS 5000 Series User Manual

Cisco NCS 5000 Series
188 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #98 background imageLoading...
Page #98 background image
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 interface GigabitEthernet 0/0/0/0- is applied.
Case 2
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
88
Configuring Flexible Command Line Interface
Regular Expressions in Configuration Groups

Table of Contents

Other manuals for Cisco NCS 5000 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco NCS 5000 Series and is the answer not in the manual?

Cisco NCS 5000 Series Specifications

General IconGeneral
BrandCisco
ModelNCS 5000 Series
CategoryNetwork Router
LanguageEnglish

Related product manuals