Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing Routing Policy on Cisco IOS XR Software
Information About Implementing Routing Policy on Cisco IOS XR Software
RC-397
Cisco IOS XR Routing Configuration Guide
OL-14356-01
OSPFv3 Policy Attach Points
This section describes each of the OSPFv3 policy attach points and provides a summary of the OSPFv3
attributes and operators.
Default-Information Originate, page RC-397
Redistribute, page RC-397
Default-Information Originate
The default-information originate attach point allows the user to conditionally inject the default route
0::/0 into the OSPFv3 link-state database, which is done by evaluating the attached policy. If any routes
in the local RIB pass the policy, then the default route is inserted into the link-state database.
The following example shows how to generate a default route if any of the routes that match 2001::/96
are present in the RIB:
route-policy ospfv3-originate
if rib-has-route in (2001::/96) then
pass
endif
end-policy
router ospfv3 1
default-information originate policy ospfv3-originate
.
.
Redistribute
The redistribute attach point within OSPFv3 injects routes from other routing protocol sources into the
OSPFv3 link-state database, which is done by selecting the route types it wants to import from each
protocol. It then sets the OSPFv3 parameters of cost and metric type. The policy can control how the
routes are injected into OSPFv3 by using the metric type command.
redistribute destination in n/a
metric-type n/a set
ospf-metric n/a set
next-hop in n/a
mpls-label
1
route-has-label n/a
route-type is n/a
tag is, eq, ge, le set
area-in destination in n/a
area-out destination in n/a
1. The mpls-label attribute is implicit in the conditional syntax; it is implied by the route-has-label operator.
Table 3 OSPF Attributes and Operators (continued)
Attach Point Attribute Match Set