To apply a routing policy to a routing protocol, include the import and export statements:
-
import [ policy-names ];
-
export [ policy-names ];
You can include the statements at the following hierarchy levels:
In the import statement, list the name of the routing policy to be evaluated when routes are imported into the routing table from the routing protocol.
In the export statement, list the name of the routing policy to be evaluated when routes are being exported from the routing table into a dynamic routing protocol. Only active routes are exported from the routing table.
You can reference the same routing policy one or more times in the same or different import and export statements.
For information about how the policy framework software evaluates a routing policy, see How a Routing Policy Is Evaluated.