EasyManuals Logo

Cisco NCS 5500 Series Configuration Guides

Cisco NCS 5500 Series
268 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 #168 background imageLoading...
Page #168 background image
is true only if the value of the MED in the route is 42, otherwise it is false.
A simple condition may also be negated using the not operator:
not next-hop in (10.0.2.2)
Any Boolean condition enclosed in parentheses is itself a Boolean condition:
(destination in prefix-list-1)
A compound condition takes either of two forms. It can be a simple expression followed by the and operator,
itself followed by a simple condition:
med eq 42 and next-hop in (10.0.2.2)
A compound condition may also be a simpler expression followed by the or operator and then another simple
condition:
origin is igp or origin is incomplete
An entire compound condition may be enclosed in parentheses:
(med eq 42 and next-hop in (10.0.2.2))
The parentheses may serve to make the grouping of subconditions more readable, or they may force the
evaluation of a subcondition as a unit.
In the following example, the highest-precedence not operator applies only to the destination test, the and
operator combines the result of the not expression with the community test, and the or operator combines
that result with the MED test.
med eq 10 or not destination in (10.1.3.0/24) and community matches-any ([12..34]:[56..78])
With a set of parentheses to express the precedence, the result is the following:
med eq 10 or ((not destination in (10.1.3.0/24)) and community matches-any
([12..34]:[56..78])
The following is another example of a complex expression:
(origin is igp or origin is incomplete or not med eq 42) and next-hop in (10.0.2.2)
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
156
Implementing Routing Policy
Boolean Conditions

Table of Contents

Other manuals for Cisco NCS 5500 Series

Questions and Answers:

Question and Answer IconNeed help?

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

Cisco NCS 5500 Series Specifications

General IconGeneral
SeriesNCS 5500
CategoryNetwork Router
Operating SystemCisco IOS XR
Product TypeModular Router
Form FactorRack-mountable
PurposeHigh-performance routing for service providers and large enterprises
Interface TypesEthernet
RedundancyRedundant power supplies and fan trays
Port DensityVaries by model; high-density configurations available
Routing ProtocolsBGP, OSPF, IS-IS, MPLS
Power Supply OptionsAC and DC power supplies available
ManagementCLI, SNMP, NETCONF

Related product manuals