The set protocols ospf6 import command configures OSPF importing a routing policy, which is used to filter and modify the OSPF route received from neighbors before adding to the routing table in RIB.
set protocols ospf6 [vrf <vrf-name>] import <policy-name>
Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].
If no VRF is specified, import the route from the default VRF.
Specifies the policy name. The value is a string.
When the OSPF import a routing policy is configured, filters act upon routes as soon as they are received from a routing protocol. Import filter processing is already launched before the protocol even makes a decision on the route.
Note that import filters may therefore affect the routing decision process (e.g. by changing the metric).
- Configure OSPF filter to add the route (to the network 2001:1::/32) to RIB.