16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2: Introduction to Routing <strong>Policy</strong><br />

Figure 10: Routing <strong>Policy</strong> Subroutine Evaluation<br />

Routing <strong>Policy</strong> Tests<br />

After you have created a routing policy, you can use the test policy command to ensure<br />

that the policy produces the results that you expect before applying the policy in a live<br />

environment. This command determines whether the routes specified in your routing<br />

policy are accepted or rejected. The default action of the test policy command is accept.<br />

NOTE: The default policy of the test policy command accepts all routes from<br />

all protocols. Test output can be misleading when you are evaluating<br />

protocol-specific conditions.<br />

For example, if you define a policy for BGP that accepts routes of a specified<br />

prefix and apply it to BGP as an export policy, BGP routes that match the<br />

prefix are advertised to BGP peers. However, if you test the same policy using<br />

the test policy command, the test output might indicate that non-BGP routes<br />

have been accepted.<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!