Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
 

Related Documentation

 

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:

condition condition-name {if-route-exists address table table-name;}

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:

policy-options {policy-statement policy-name {term 1 {from {protocols bgp;condition condition-name;}then {accept;}}...}

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.

 

Related Documentation

 

Published: 2012-12-04

Supported Platforms

 

Related Documentation

 

Published: 2012-12-04