Configuring Routing Policy Match Conditions Based on Routing Table Entries
In addition to defining match conditions in the from statement of a policy, you can use the condition statement to define conditions used during policy evaluation:
You can include this statement at the following hierarchy levels:
- [edit policy-options]
- [edit logical-systems logical-system-name policy-options]
To define a policy condition based on the existence of routes in specific tables for use in BGP export policies, specify a name for the condition and include the following options:
- if-route-exists address—Specify the address of the route in question.
- table table-name—Specify a routing table.
You can then add the defined condition to the from statement of a policy:
The condition statement is available on all platforms, but is limited to use in BGP export policies. To view the configured policy conditions and their associated routing tables and dependent routes, issue the show policy conditions operational mode command.